Add and document database cache
This commit is contained in:
parent
ebf88527fe
commit
70acf2c381
3 changed files with 9 additions and 0 deletions
|
@ -132,6 +132,13 @@ STATIC_URL = "static/" # CSS, JavaScript, etc.
|
|||
STATIC_ROOT = BASE_DIR / "static.dist"
|
||||
MEDIA_URL = "media/" # User uploads, e.g. images
|
||||
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
|
||||
"LOCATION": "servala_cache",
|
||||
}
|
||||
}
|
||||
|
||||
# Additional locations of static files
|
||||
STATICFILES_FINDERS = (
|
||||
"django.contrib.staticfiles.finders.FileSystemFinder",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue