Retire les settings du git

Propose un fichier d'exemple, à adapter à la conf du serveur
This commit is contained in:
Martin Pépin 2016-06-21 00:45:21 +02:00
parent 334c1d2f00
commit fa854a83ee
2 changed files with 18 additions and 13 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.pyc
media/
db.sqlite3
Ernestophone/settings.py

View file

@ -10,24 +10,27 @@ https://docs.djangoproject.com/en/1.7/ref/settings/
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
MEDIA_ROOT = 'media/'
MEDIA_URL = 'media/'
EMAIL_HOST='clipper.ens.fr'
EMAIL_PORT= 25
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
STATIC_URL = '/static/'
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '+9czchiqs@imvckb6e7-msqdu!e^c9b7n1&+*qgo%p7ackwu7$'
SECRET_KEY = 'ax0|dG^AhtYfXPXgu3*e|k3l^yKpbK;$~(_%q/5C!H9yHA(Z(2'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@ -43,6 +46,7 @@ INSTALLED_APPS = (
'partitions',
'calendrier',
'propositions',
'pads',
)
MIDDLEWARE_CLASSES = (
@ -87,17 +91,17 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
STATICFILES_DIRS = (
'static',
'media/partitions',
os.path.join(BASE_DIR, 'static'),
os.path.join(BASE_DIR, 'media/partitions'),
)
TEMPLATE_DIRS = (
'templates/gestion/',
'templates/',
os.path.join(BASE_DIR, 'templates/gestion/'),
os.path.join(BASE_DIR, 'templates/'),
)
AUTH_PROFILE_MODEL = 'gestion.ErnestoUser'
LOGIN_URL = "/login"