django-cachalot/runtests_urls.py
Petr Dlouhý 03f675c96f
add test that will cause error #226 (#227)
* Update utils.py

verify get_meta isn't none before requesting db_table

* Add passenv to tox.ini

* Fix test_explain in sqlite

* add test that will cause error #226

* try to get around problem with PASSWORD in GitHub actions testing

* fix tests broken not counting with other applications permissions

---------

Co-authored-by: hho6643 <63743025+hho6643@users.noreply.github.com>
Co-authored-by: Andrew Chen Wang <60190294+Andrew-Chen-Wang@users.noreply.github.com>
2023-03-12 16:39:50 -04:00

15 lines
353 B
Python

import debug_toolbar
from django.urls import path, re_path, include
from django.http import HttpResponse
from django.contrib import admin
def empty_page(request):
return HttpResponse('<body></body>')
urlpatterns = [
re_path(r'^$', empty_page),
re_path(r'^__debug__/', include(debug_toolbar.urls)),
path('admin/', admin.site.urls),
]