MANAGERS = ADMINS
TIME_ZONE = 'Canada/Montreal'
-
+DATE_FORMAT = 'd F Y'
LANGUAGE_CODE = 'fr-ca'
# Absolute path to the directory that holds media.
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
MEDIA_URL = '/media/'
-PRIVE_MEDIA_URL = '/prive/'
+PRIVE_MEDIA_URL = '/dae/prive/'
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'reversion.middleware.RevisionMiddleware',
'admin_tools.dashboard',
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
+ 'auf.django.admingroup',
+ 'ajax_select',
'south',
'reversion',
- #'project.rh',
+ 'auf.django.workflow',
'project.rh_v1',
'project.dae',
)
AUTHENTICATION_BACKENDS = (
'auf.django.auth.backends.CascadeBackend',
)
+LOGIN_URL = "/connexion"
+LOGIN_REDIRECT_URL = "/"
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
ADMIN_TOOLS_INDEX_DASHBOARD = 'project.dashboard.CustomIndexDashboard'
+
+AJAX_LOOKUP_CHANNELS = {
+ 'responsables' : ('dae.catalogues', 'Responsable'),
+ 'dossiers' : ('dae.catalogues', 'Dossier'),
+ 'postes' : ('dae.catalogues', 'Poste'),
+}
+
+# django-sendfile
+
+SENDFILE_BACKEND = 'sendfile.backends.simple'
+