mirror of
https://github.com/YunoHost-Apps/django-for-runners_ynh.git
synced 2024-09-03 18:26:16 +02:00
23 lines
651 B
Python
23 lines
651 B
Python
from django.conf import settings
|
|
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'<html><body>request.META: <pre>{meta}</pre></body></html>'
|
|
# from django.http import HttpResponse
|
|
# return HttpResponse(html)
|
|
|
|
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = [
|
|
# path(f'{settings.PATH_URL}/debug/', debug_view),
|
|
path(f'{settings.PATH_URL}/', admin.site.urls),
|
|
]
|