From 72ddaacd00f19123de37690e155d6397b2f2ec90 Mon Sep 17 00:00:00 2001 From: Yell0wflash Date: Sat, 2 Jun 2018 09:32:55 +0200 Subject: [PATCH] redirect to /admin/for_runners/gpxmodel/ --- for_runners_test_project/urls.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/for_runners_test_project/urls.py b/for_runners_test_project/urls.py index 23ef553..1784d3b 100644 --- a/for_runners_test_project/urls.py +++ b/for_runners_test_project/urls.py @@ -1,20 +1,20 @@ # coding: utf-8 - - - -from django.conf.urls import include, url, static +from django.conf.urls import include, static, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin +from django.views.generic import RedirectView +# https://github.com/jedie/django-for-runners from for_runners_test_project import settings - admin.autodiscover() - urlpatterns = i18n_patterns( url(r'^admin/', include(admin.site.urls)), + + # until there is not real CMS pages: redirect to the interesting admin page: + url(r"^$", RedirectView.as_view(url="/admin/for_runners/gpxmodel/")), url(r'^', include('cms.urls')), )