diff --git a/app/web/urls.py b/app/web/urls.py index 39cc8f7f..8cf1ad5b 100755 --- a/app/web/urls.py +++ b/app/web/urls.py @@ -1,4 +1,5 @@ from django.conf import settings +from django.shortcuts import redirect from django.urls import path, re_path, include as path_include from django.conf.urls import include from django.conf.urls.static import static @@ -38,6 +39,7 @@ path('api/', include(router.urls)), path('admin/', admin.site.urls), + path(".well-known/security.txt", lambda: redirect("https://www.amsterdam.nl/security.txt")), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)