Commit 8ca0cdd7 authored by Christophe Siraut's avatar Christophe Siraut

Developement settings are set with a symlink

parent 6a70792e
This diff is collapsed.
recursive-include nuages_templates *
recursive-include registration_templates *
recursive-include meetingpoll *
include LICENSE
from settings import INSTALLED_APPS, DEBUG
import os
PROJECT_DIR = os.path.dirname(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = True
# Make this unique.
SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'
# No SSL when developing
SESSION_COOKIE_SECURE = False
CSRF_COOKIE_SECURE = False
ADMINS = ()
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_DIR, 'db.sqlite'),
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
},
}
INSTALLED_APPS += (
'debug_toolbar',
)
dev_settings.py
\ No newline at end of file
...@@ -2,22 +2,27 @@ ...@@ -2,22 +2,27 @@
# coding: utf-8 # coding: utf-8
# Django settings for Nuages # Django settings for Nuages
import os import os
import socket
DEBUG = False DEBUG = False
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
ALLOWED_HOSTS = '*'
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
ALLOWED_HOSTS = [socket.getfqdn()]
ADMINS = ( ADMINS = (
# ('Your Name', 'your_email@domain.com'), ('Nuages', 'nuages@lists.domainepublic.net'),
) )
MANAGERS = ADMINS MANAGERS = ADMINS
DEFAULT_FROM_EMAIL = 'nuages@domainepublic.net' DEFAULT_FROM_EMAIL = 'nuages@domainepublic.net'
LOGIN_REDIRECT_URL = '/' LOGIN_REDIRECT_URL = '/'
PROJECT_DIR = os.path.normpath(os.path.dirname(os.path.dirname(__file__))) PROJECT_DIR = os.path.dirname(os.path.dirname(__file__))
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(PROJECT_DIR, 'nuages.sqlite'), 'NAME': '/var/lib/nuages/db.sqlite',
'USER': '', 'USER': '',
'PASSWORD': '', 'PASSWORD': '',
'HOST': '', 'HOST': '',
...@@ -39,10 +44,10 @@ TIME_ZONE = 'Europe/Brussels' ...@@ -39,10 +44,10 @@ TIME_ZONE = 'Europe/Brussels'
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
LANGUAGES = ( LANGUAGES = (
('fr', u'Français'), ('fr', u'Français'),
('en', u'English'), ('en', u'English'),
('nl', u'Nederlands'), ('nl', u'Nederlands'),
('ca', u'Català') ('ca', u'Català')
) )
SITE_ID = 1 SITE_ID = 1
...@@ -82,7 +87,7 @@ STATICFILES_DIRS = ( ...@@ -82,7 +87,7 @@ STATICFILES_DIRS = (
STATICFILES_FINDERS = ( STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder', #'django.contrib.staticfiles.finders.DefaultStorageFinder',
) )
# Make this unique, and don't share it with anybody. # Make this unique, and don't share it with anybody.
...@@ -92,7 +97,7 @@ SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn' ...@@ -92,7 +97,7 @@ SECRET_KEY = '3qm&@6264-=st16)7_xa*ds+31e0mqqs@+*!ud7gzt$tq!b^qn'
TEMPLATE_LOADERS = ( TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader', 'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader', 'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.load_template_source', #'django.template.loaders.eggs.load_template_source',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
...@@ -108,7 +113,7 @@ MIDDLEWARE_CLASSES = ( ...@@ -108,7 +113,7 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'nuages.urls' ROOT_URLCONF = 'nuages.urls'
TEMPLATE_DIRS = ( TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Put strings here, like "/home/html/django_templates".
# Always use forward slashes, even on Windows. # Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths. # Don't forget to use absolute paths, not relative paths.
) )
...@@ -132,6 +137,6 @@ INSTALLED_APPS = ( ...@@ -132,6 +137,6 @@ INSTALLED_APPS = (
) )
try: try:
from local_settings import * from local_settings import *
except ImportError, e: except ImportError, e:
pass pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment