fix flatpage re_path
This commit is contained in:
@@ -48,6 +48,6 @@ urlpatterns = [
|
||||
name="django.contrib.sitemaps.views.sitemap",
|
||||
),
|
||||
path('pages/', include('django.contrib.flatpages.urls')),
|
||||
re_path(r'^(?P<url>.*)$', flatpages.views.flatpage),
|
||||
re_path(r'^(?P<url>.*/)$', flatpages.views.flatpage),
|
||||
path('impressum/', flatpages.views.flatpage, {'url': '/impressum/'}, name='impressum'),
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
Reference in New Issue
Block a user