Exemplo n.º 1
0
def pluggableapp(**kw):
    app = PluggableApp('authtkt', distribution='django-authtkt', **kw)
    app.append_app('authtkt')
    app.register_pattern('', r'^authtkt/', 'authtkt.urls')
    app.register_media(__file__)
    app.insert_templates(__file__)
    # app.initialize_settings(MYAPP_KEY='myappvalue', MYAPP_OTHER='other')
    return app
Exemplo n.º 2
0
def pluggableapp(**kw):
    app = PluggableApp("authtkt", distribution="django-authtkt", **kw)
    app.append_app("authtkt")
    app.register_pattern("", r"^authtkt/", "authtkt.urls")
    app.register_media(__file__)
    app.insert_templates(__file__)
    # app.initialize_settings(MYAPP_KEY='myappvalue', MYAPP_OTHER='other')
    return app
Exemplo n.º 3
0
def pluggableapp(**kw):
    app = PluggableApp('djangovideos', distribution='django-videos', **kw)
    app.append_app()
    app.append("TEMPLATE_CONTEXT_PROCESSORS", "django.core.context_processors.i18n",
                                              "django.core.context_processors.request")
    app.register_pattern('', r'^videos/', 'djangovideos.urls')
    app.insert_templates(__file__)
    return app