Stub out cookie/privacy policy. Add memcached to docker image
This commit is contained in:
+2
-1
@@ -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
|
||||
# }
|
||||
|
||||
@@ -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')),
|
||||
]
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user