aboutsummaryrefslogtreecommitdiffstats
path: root/config/settings/base.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-12-08 21:18:23 +0000
committerMatthew Lemon <y@yulqen.org>2024-12-08 21:18:23 +0000
commitd3dda8c0bd194c28cf11c189c150c00bdc3e8a83 (patch)
tree28a656ea58e1420cc0da024eeadcc6ff1b30f234 /config/settings/base.py
parent411e79ada3d5bf315000ff5bb598235118d50b51 (diff)
wip: working on ratelimit - not quite working in the browser
Diffstat (limited to 'config/settings/base.py')
-rw-r--r--config/settings/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/settings/base.py b/config/settings/base.py
index 9c6183c..157926b 100644
--- a/config/settings/base.py
+++ b/config/settings/base.py
@@ -359,3 +359,10 @@ AWS_S3_ENDPOINT_URL = env("SPACES_ENDPOINT_URL")
MAILGUN_API_KEY = env("MAILGUN_API_KEY")
MAILGUN_SENDER_DOMAIN = env("MAILGUN_SENDER_DOMAIN")
MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3")
+
+CACHES = {
+ "default": {
+ "BACKEND": "django.core.cache.backends.db.DatabaseCache",
+ "LOCATION": "rate_limit_cache",
+ },
+}