[buildout]
+newest = false
parts = django
versions = versions
find-links = http://pypi.auf.org/simple/auf.recipe.django
http://pypi.auf.org/simple/auf.django.skin
http://pypi.auf.org/datamaster_modeles/
+ http://pypi.auf.org/simple/auf.django.auth
eggs =
django
django-admin-tools
auf.django.skin
datamaster_modeles
+ auf.django.auth
[versions]
django-admin-tools = 0.4.0
django = 1.2.5
south = 0.7
auf.django.skin = 0.15dev
+auf.django.auth = 0.5.1dev
[django]
recipe = auf.recipe.django
--- /dev/null
+# -*- encoding: utf-8 -*
+
+"""
+This file was generated with the customdashboard management command, it
+contains the two classes for the main dashboard and app index dashboard.
+You can customize these classes as you want.
+
+To activate your index dashboard add the following to your settings.py::
+ ADMIN_TOOLS_INDEX_DASHBOARD = 'SIGMA.dashboard.CustomIndexDashboard'
+
+And to activate the app index dashboard::
+ ADMIN_TOOLS_APP_INDEX_DASHBOARD = 'SIGMA.dashboard.CustomAppIndexDashboard'
+"""
+
+from django.utils.translation import ugettext_lazy as _
+from django.core.urlresolvers import reverse
+
+from admin_tools.dashboard import modules, Dashboard, AppIndexDashboard
+from admin_tools.utils import get_admin_site_name
+
+
+class CustomIndexDashboard(Dashboard):
+ """
+ Custom index dashboard for SIGMA.
+ """
+ def init_with_context(self, context):
+ site_name = get_admin_site_name(context)
+
+ # append an app list module for "Applications"
+ self.children.append(modules.AppList(
+ _('Applications'),
+ exclude=('django.contrib.*',),
+ ))
+
+ # append an app list module for "Administration"
+ self.children.append(modules.AppList(
+ _('Administration'),
+ models=('django.contrib.*',),
+ ))
+
+ # append a recent actions module
+ self.children.append(modules.RecentActions(_('Recent Actions'), 5))
'auf.django.skin.context_processors.auf',
)
+AUTHENTICATION_BACKENDS = (
+ 'auf.django.auth.backends.CascadeBackend',
+)
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
)
+ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'