Stub out cookie/privacy policy. Add memcached to docker image

This commit is contained in:
Ross
2022-11-21 15:00:52 +00:00
parent 0b90308394
commit 653baa85ff
8 changed files with 40 additions and 3 deletions
+2 -1
View File
@@ -59,6 +59,7 @@ INSTALLED_APPS = [
"dal",
"dal_select2",
"dal_queryset_sequence",
"cookie_consent",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@@ -217,7 +218,7 @@ CORS_ORIGIN_ALLOW_ALL = True
CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.memcached.PyMemcacheCache",
"LOCATION": "127.0.0.1:11211",
"LOCATION": f'{os.environ.get("MEMCACHE_HOST", "127.0.0.1")}:11211',
#'OPTIONS': {
# 'server_max_value_length': 1024 * 1024 * 10
# }
+3
View File
@@ -136,6 +136,9 @@ urlpatterns = [
path("api/", include(router.urls)),
path("api-auth/", include("rest_framework.urls")),
path("tinymce/", include("tinymce.urls")),
path("cookies/", include("cookie_consent.urls")),
#path("cookies/", include("cookie_consent.urls")),
path("privacy/", views.privacy_view, name="privacy"),
# path('select2/', include('select2.urls')),
]
+3
View File
@@ -478,6 +478,9 @@ def view_feedback(request):
},
)
def privacy_view(request):
return render(request, "privacy.html")
# HTTP Error 400
def page_not_found(request, exception):