2020-12-12 19:37:20 +01:00
|
|
|
from django.conf import settings
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.urls import path
|
|
|
|
|
2020-12-22 18:52:38 +01:00
|
|
|
# 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)
|
2020-12-12 19:37:20 +01:00
|
|
|
|
|
|
|
|
2020-12-22 18:52:38 +01:00
|
|
|
admin.autodiscover()
|
2020-12-12 19:37:20 +01:00
|
|
|
|
2020-12-22 18:52:38 +01:00
|
|
|
urlpatterns = [
|
|
|
|
# path(f'{settings.PATH_URL}/debug/', debug_view),
|
|
|
|
path(f'{settings.PATH_URL}/', admin.site.urls),
|
|
|
|
]
|