예제 #1
0
def index(request) :

    attributes = None

    try:
        attributes = HomeAttribute.objects.filter(isCurrent=True)[0]
    except:
        pass

    display = attributes or HomeAttribute(introduction="<P>Slacking!!!</P>", stageImage="#")

    registered_modules = dict([ (getattr(SiteManagerInstance.getRegisteredModule(mod), "friendly_app_name", mod), reverse(mod+'.views.index')) for mod in settings.INSTALLED_APPS if mod in SiteManagerInstance.getRegisteredModules() ])
    return render_to_response("site-home.html",
            {'registered_modules' : registered_modules,
                'home_attributes': display},
            context_instance=RequestContext(request))
예제 #2
0
import japanese

from home.manage import SiteManagerInstance

SiteManagerInstance.registerModule(japanese)

friendly_app_name = 'Japanese'

app_theme = 'bblue'

section_flag = True