Fix admin redirect by using the url pattern name and not hardcoded URL

pull/31/head
JensDiemer 2020-12-09 11:52:18 +01:00
rodzic df3828c321
commit 8cc1f3cfb8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -10,7 +10,7 @@ admin.autodiscover()
urlpatterns = [ # Don't use i18n_patterns() here
path('admin/', admin.site.urls),
url(r'^$', RedirectView.as_view(url='/admin/')),
url(r'^$', RedirectView.as_view(pattern_name='admin:index')),
path('ckeditor/', include('ckeditor_uploader.urls')), # TODO: check permissions?
path(settings.MEDIA_URL.lstrip('/'), include('django_tools.serve_media_app.urls')),