Projet

Général

Profil

0001-settings-improve-defaults-fixes-22947.patch

Benjamin Dauvergne, 03 avril 2018 10:50

Télécharger (1,63 ko)

Voir les différences:

Subject: [PATCH] settings: improve defaults (fixes #22947)

 fargo/settings.py | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)
fargo/settings.py
23 23

  
24 24
# SECURITY WARNING: don't run with debug turned on in production!
25 25
DEBUG = True
26

  
26
INTERNAL_IPS = ['127.0.0.1', '::1']
27 27
ALLOWED_HOSTS = []
28 28

  
29 29

  
......
98 98
# Internationalization
99 99
# https://docs.djangoproject.com/en/1.7/topics/i18n/
100 100

  
101
LANGUAGE_CODE = 'en-us'
101
LANGUAGE_CODE = 'fr-FR'
102 102

  
103
TIME_ZONE = 'UTC'
103
TIME_ZONE = 'Europe/Paris'
104 104

  
105 105
USE_I18N = True
106 106

  
......
205 205
LOGGING = {
206 206
    'version': 1,
207 207
    'disable_existing_loggers': True,
208
    'formatters': {
209
        'simple': {
210
            'format': '%(levelname)s %(asctime)s %(name)s: %(message)s'
211
        },
212
    },
208 213
    'handlers': {
209 214
        'console': {
210 215
            'level': 'DEBUG',
211 216
            'class': 'logging.StreamHandler',
217
            'formatter': 'simple',
212 218
        },
213 219
    },
214 220
    'loggers': {
......
216 222
            'level': 'INFO',
217 223
        },
218 224
        'django': {
219
            'level': 'DEBUG',
225
            'level': 'INFO',
220 226
        },
221 227
        '': {
222 228
            'handlers': ['console'],
223
            'level': 'INFO',
229
            'level': 'DEBUG',
224 230
        },
225 231
    },
226 232
}
227
-