import os
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
...
]
urlpatterns += static('/reports/', document_root=os.path.join(settings.BASE_DIR, 'reports'))
from django.utils.translation import LANGUAGE_SESSION_KEY
def select_lang(request, code):
...
request.session[LANGUAGE_SESSION_KEY] = code
...
LOGGING = {
...,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': 'INFO',
},
},
}
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
...
}