feat: Add basic flow to add adoption notices
This commit is contained in:
@@ -91,6 +91,9 @@ SEC_POLICY = config.get("security", "Policy",
|
||||
|
||||
""" LOCATIONS """
|
||||
STATIC_ROOT = config.get("locations", "static", fallback="/notfellchen/static")
|
||||
MEDIA_ROOT = config.get("locations", "media", fallback="/notfellchen/static")
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
|
||||
# see https://docs.djangoproject.com/en/3.2/ref/settings/#std-setting-ALLOWED_HOSTS
|
||||
ALLOWED_HOSTS = [config.get("notfellchen", "host", fallback='*')]
|
||||
|
@@ -16,8 +16,15 @@ Including another URLconf
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
from django.conf import settings
|
||||
|
||||
from django.conf.urls.static import static
|
||||
|
||||
urlpatterns = [
|
||||
path("", include("fellchensammlung.urls")),
|
||||
path('admin/', admin.site.urls),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL,
|
||||
document_root=settings.MEDIA_ROOT)
|
||||
|
Reference in New Issue
Block a user