mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
This commit is big because anything small breaks the code. - Django dispatcher is based on regular expressions and does not need a tree structure - Reduces a lot of unnecessary dependencies among modules - Use Django sessions middlewear instead of CherryPy sessions - Introduce dependency based modules instead of numeric load order - Remove PagePlugin and simply use Django views - Eliminate page rendering wrappers in favor of Django context processors - Use custom auth for now until replaced by Django auth middlewear - Use Django templated 404 and 500 error pages
15 lines
357 B
Python
15 lines
357 B
Python
from django.template.response import TemplateResponse
|
|
from gettext import gettext as _
|
|
|
|
import cfg
|
|
|
|
|
|
def init():
|
|
"""Initailize the apps module"""
|
|
cfg.main_menu.add_item("Apps", "icon-download-alt", "/apps", 80)
|
|
|
|
|
|
def index(request):
|
|
"""Serve the apps index page"""
|
|
return TemplateResponse(request, 'apps.html', {'title': _('Applications')})
|