fix #13
This commit is contained in:
parent
869274cf77
commit
d0ed605f70
@ -1,3 +1,3 @@
|
|||||||
<span class="badge badge-pill badge-light">Version 201004</span>
|
<span class="badge badge-pill badge-light">Version 201026</span>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -43,7 +43,9 @@ INSTALLED_APPS = [
|
|||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
|
'django.middleware.cache.UpdateCacheMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
'django.middleware.cache.FetchFromCacheMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||||
'django.contrib.messages.middleware.MessageMiddleware',
|
'django.contrib.messages.middleware.MessageMiddleware',
|
||||||
@ -129,3 +131,15 @@ MAINTENANCE_MODE_READ_ONLY = False
|
|||||||
|
|
||||||
# do not redirect after login
|
# do not redirect after login
|
||||||
LOGIN_REDIRECT_URL = './'
|
LOGIN_REDIRECT_URL = './'
|
||||||
|
|
||||||
|
# caching
|
||||||
|
CACHES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
|
||||||
|
'LOCATION': '/var/tmp/django_cache',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# caching
|
||||||
|
CACHE_MIDDLEWARE_ALIAS = 'default'
|
||||||
|
CACHE_MIDDLEWARE_SECONDS = 600
|
||||||
|
Loading…
x
Reference in New Issue
Block a user