From 098793d79b8a36b5ef29f97975bfe96b91df7550 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Tue, 22 Dec 2020 17:42:24 +0100 Subject: [PATCH] Remove /admin/ from URLs --- conf/ynh_urls.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/conf/ynh_urls.py b/conf/ynh_urls.py index 6f73ffe..bd1d685 100644 --- a/conf/ynh_urls.py +++ b/conf/ynh_urls.py @@ -2,7 +2,6 @@ from django.conf import settings from django.conf.urls import include, static from django.contrib import admin from django.urls import path -from django.views.generic import RedirectView # def debug_view(request): @@ -18,14 +17,12 @@ from django.views.generic import RedirectView # return HttpResponse(html) -# settings.PATH_URL is the $YNH_APP_ARG_PATH if settings.PATH_URL: + # settings.PATH_URL is the $YNH_APP_ARG_PATH # Prefix all urls with "PATH_URL": urlpatterns = [ - path(f'{settings.PATH_URL}/admin/', admin.site.urls), - - # path(f'{settings.PATH_URL}/', debug_view), - path(f'{settings.PATH_URL}/', RedirectView.as_view(pattern_name='admin:index')), + # path(f'{settings.PATH_URL}/debug/', debug_view), + path(f'{settings.PATH_URL}/', admin.site.urls), path(f'{settings.PATH_URL}/ckeditor/', include('ckeditor_uploader.urls')),