X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=xnet%2Fsettings%2Fbase.py;h=b5959431f1b1d7f05a1e29bb6e4db13e0ad5c13e;hb=1564d2a521e1e2172b3c3579ceda86c9aceab47e;hp=6d53eb3e510933e68ebaa93a7c60e27812a25e33;hpb=95fa5c138ee65686c6dd142b45f87183b0397f30;p=xnet diff --git a/xnet/settings/base.py b/xnet/settings/base.py index 6d53eb3..b595943 100644 --- a/xnet/settings/base.py +++ b/xnet/settings/base.py @@ -21,6 +21,8 @@ ADMINS = ( MANAGERS = ADMINS +CONTACT_EMAIL = 'contact@polytechnique.org' + AUTHENTICATION_BACKENDS = ( 'django_authgroupex.auth.AuthGroupeXBackend', ) @@ -54,6 +56,7 @@ TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', + 'xnet.site.context_processors.public_settings', 'xnet.groups.context_processors.xnet', ) @@ -100,7 +103,7 @@ STATICFILES_DIRS = ( # List of finder classes that know how to find static files in # various locations. STATICFILES_FINDERS = ( - 'django.contrib.staticfiles.finders.FileSystemFinder', +# 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) @@ -110,7 +113,7 @@ SECRET_KEY = 'FOR DEV ONLY!!' # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.Loader', +# 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', # 'django.template.loaders.eggs.Loader', ) @@ -132,13 +135,16 @@ ROOT_URLCONF = 'xnet.urls' WSGI_APPLICATION = 'xnet.wsgi.application' TEMPLATE_DIRS = ( - os.path.join(ROOT_DIR, 'templates'), + #os.path.join(ROOT_DIR, 'templates'), # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. ) INSTALLED_APPS = ( + # site app defines registration/ templates which overwrite other apps + 'xnet.site', + 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', @@ -151,11 +157,10 @@ INSTALLED_APPS = ( 'crispy_forms', 'xnet.accounts', - 'xnet.site', 'xnet.groups', 'xnet.news', 'xnet.events', - 'xnet.example', + 'xnet.profiles', ) # A sample logging configuration. The only tangible logging