mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Fixed black lint
This commit is contained in:
parent
f4dfd8f99c
commit
b97ce81dd2
@ -54,9 +54,11 @@ handler500 = "core.views.internal_servor_error"
|
|||||||
|
|
||||||
# Sentry Test case
|
# Sentry Test case
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|
||||||
def trigger_error(request):
|
def trigger_error(request):
|
||||||
division_by_zero = 1 / 0
|
division_by_zero = 1 / 0
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path("", include(("core.urls", "core"), namespace="core")),
|
path("", include(("core.urls", "core"), namespace="core")),
|
||||||
path("rootplace/", include(("rootplace.urls", "rootplace"), namespace="rootplace")),
|
path("rootplace/", include(("rootplace.urls", "rootplace"), namespace="rootplace")),
|
||||||
@ -92,13 +94,12 @@ urlpatterns = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
|
||||||
import debug_toolbar
|
import debug_toolbar
|
||||||
|
|
||||||
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
|
urlpatterns += [path("__debug__/", include(debug_toolbar.urls))]
|
||||||
|
|
||||||
# Sentry test case
|
# Sentry test case
|
||||||
urlpatterns += [path("sentry-debug/", trigger_error)]
|
urlpatterns += [path("sentry-debug/", trigger_error)]
|
||||||
|
Loading…
Reference in New Issue
Block a user