From 848f45d16aae954c7c551c59bd3353ea288c1dbd Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Fri, 15 Apr 2022 16:34:31 +0200 Subject: [PATCH] use request_media_debug_view from django_yunohost_integration --- conf/urls.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/conf/urls.py b/conf/urls.py index f7dda28..692e08d 100644 --- a/conf/urls.py +++ b/conf/urls.py @@ -4,25 +4,15 @@ from django.contrib import admin from django.urls import path -# def debug_view(request): -# """ debug request.META """ -# if not request.user.is_authenticated: -# from django.shortcuts import redirect -# return redirect('admin:index') -# -# import pprint -# meta = pprint.pformat(request.META) -# html = f'request.META:
{meta}
' -# from django.http import HttpResponse -# return HttpResponse(html) +# from django_yunohost_integration.views import request_media_debug_view 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}/debug/', debug_view), path(f'{settings.PATH_URL}/', admin.site.urls), + # path(f'{settings.PATH_URL}/debug/', request_media_debug_view), # TODO: https://github.com/jedie/django-for-runners/issues/25 # MEDIA_URL contains the "PATH_URL" already: