Добавил Sentry

This commit is contained in:
Viner Abubakirov
2026-01-04 13:12:44 +05:00
parent db113ef5d1
commit aca3931abd
6 changed files with 52 additions and 1 deletions

View File

@@ -1,10 +1,11 @@
from django.urls import path
from core.views import index
from core.views import index, sentry_debug
app_name = "index"
urlpatterns = [
path("", index, name="main_index"),
path("sentry-debug/", sentry_debug, name="sentry_debug"),
]

View File

@@ -3,3 +3,7 @@ from django.shortcuts import render
def index(request, *args, **kwargs):
return render(request, "index.html")
def sentry_debug(request):
division_by_zero = 1 / 0 # noqa