Skip to content

Commit ac243fa

Browse files
Patrick SandifordPatrick Sandiford
Patrick Sandiford
authored and
Patrick Sandiford
committed
added logging, jquery and bootstrap
1 parent d660489 commit ac243fa

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

project/settings.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,29 @@
3333

3434
ALLOWED_HOSTS = ['*']
3535

36+
LOGGING_LEVEL = os.getenv('DJANGO_LOG_LEVEL', 'INFO')
37+
38+
LOGGING = {
39+
'version': 1,
40+
'disable_existing_loggers': False,
41+
'handlers': {
42+
'console': {
43+
'class': 'logging.StreamHandler',
44+
},
45+
},
46+
'loggers': {
47+
'django': {
48+
'handlers': ['console'],
49+
'level': LOGGING_LEVEL,
50+
'propagate': True,
51+
},
52+
'swift_browser': {
53+
'handlers': ['console'],
54+
'level': LOGGING_LEVEL,
55+
'propagate': True,
56+
},
57+
},
58+
}
3659

3760
# Application definition
3861

@@ -45,6 +68,8 @@
4568
'django.contrib.staticfiles',
4669
'debug_toolbar',
4770
'welcome',
71+
'jquery',
72+
'bootstrap3',
4873
'swift_browser',
4974
]
5075

0 commit comments

Comments
 (0)