Index: trunk/www/www/settings.py =================================================================== diff -u -r13 -r21 --- trunk/www/www/settings.py (.../settings.py) (revision 13) +++ trunk/www/www/settings.py (.../settings.py) (revision 21) @@ -15,6 +15,7 @@ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +PRODUCTION=False # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ @@ -23,7 +24,11 @@ SECRET_KEY = '30m!gi4%622f_(2w+sbh_lh9gh)vw9tl$^j5et+0!1att=8s=l' # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG=None +if PRODUCTION: + DEBUG = False +else: + DEBUG = True ALLOWED_HOSTS = [ 'www.accrosys.com', @@ -81,19 +86,24 @@ # Database # https://docs.djangoproject.com/en/3.0/ref/settings/#databases -DATABASES = { +DATABASES=None +if PRODUCTION: + DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'wwwdb', 'USER': 'wwwuser', 'PASSWORD': '5Edqt.U2rbr.gd7Sn', 'HOST': '/var/run/postgresql', }, - 'sqlite3': { + } +else: + DATABASES = { + 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } -} + } # Password validation @@ -119,13 +129,9 @@ # https://docs.djangoproject.com/en/3.0/topics/i18n/ LANGUAGE_CODE = 'fr-FR' - TIME_ZONE = 'UTC' - USE_I18N = True - USE_L10N = True - USE_TZ = True @@ -137,9 +143,9 @@ os.path.join(BASE_DIR, 'static'), ] -EMAIL_HOST='smtp.gmail.com' +EMAIL_HOST='ssl0.ovh.net' EMAIL_PORT=465 -EMAIL_HOST_USER='services@accrosys.com' -EMAIL_HOST_PASSWORD='7Upqu.sQ6qq.5Vxve' +EMAIL_HOST_USER='comfac@accrosys.fr' +EMAIL_HOST_PASSWORD='poireau.radiser' EMAIL_USE_SSL=True -EMAIL_TO=['services@accrosys.com',] +EMAIL_TO=['comfac@accrosys.fr',]