import socket
from conf import *
+PROJET_TITRE = "Demande d'autorisation d'embauche"
+
# Rapports d'erreurs
EMAIL_SUBJECT_PREFIX = '[auf_rh_dae - %s] ' % socket.gethostname()
ADMINS = (
MANAGERS = ADMINS
TIME_ZONE = 'Canada/Montreal'
-
+DATE_FORMAT = 'd F Y'
LANGUAGE_CODE = 'fr-ca'
# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media')
+PRIVE_MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'media_prive')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# 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 = '/dae/prive/'
+
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/admin_media/'
+ADMIN_MEDIA_PREFIX = '/media/django/'
# Don't share this with anybody.
SECRET_KEY = '^2w#%abp_d+e#(7f5w$leef50)c@4y38cnn#ccji@84$2^rt#l'
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',
)
ROOT_URLCONF = 'project.urls'
'admin_tools.dashboard',
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
+ 'auf.django.admingroup',
+ 'ajax_select',
'south',
- 'rh',
+ 'reversion',
+ 'auf.django.workflow',
+ 'project.rh_v1',
+ 'project.dae',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
'auf.django.skin.context_processors.auf',
+ 'project.context_processors.utilisateur',
+ 'project.context_processors.user_is_admin',
)
+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'
+