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: