settings: improve defaults (fixes #22947)
This commit is contained in:
parent
3fae61924c
commit
89987b6bd6
|
@ -23,7 +23,7 @@ SECRET_KEY = '74lgky$@g*rv=@1o55b-^ct&)))+xf+r3*vqmy#bg6!89*-*ym'
|
|||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
INTERNAL_IPS = ['127.0.0.1', '::1']
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
|
||||
|
@ -97,9 +97,9 @@ DATABASES = {
|
|||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/1.7/topics/i18n/
|
||||
|
||||
LANGUAGE_CODE = 'en-us'
|
||||
LANGUAGE_CODE = 'fr-FR'
|
||||
|
||||
TIME_ZONE = 'UTC'
|
||||
TIME_ZONE = 'Europe/Paris'
|
||||
|
||||
USE_I18N = True
|
||||
|
||||
|
@ -204,10 +204,16 @@ REST_FRAMEWORK = {
|
|||
LOGGING = {
|
||||
'version': 1,
|
||||
'disable_existing_loggers': True,
|
||||
'formatters': {
|
||||
'simple': {
|
||||
'format': '%(levelname)s %(asctime)s %(name)s: %(message)s'
|
||||
},
|
||||
},
|
||||
'handlers': {
|
||||
'console': {
|
||||
'level': 'DEBUG',
|
||||
'class': 'logging.StreamHandler',
|
||||
'formatter': 'simple',
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
|
@ -215,11 +221,11 @@ LOGGING = {
|
|||
'level': 'INFO',
|
||||
},
|
||||
'django': {
|
||||
'level': 'DEBUG',
|
||||
'level': 'INFO',
|
||||
},
|
||||
'': {
|
||||
'handlers': ['console'],
|
||||
'level': 'INFO',
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue