Skip to content

Commit

Permalink
Add oops page to test HTTP/500
Browse files Browse the repository at this point in the history
  • Loading branch information
brmzkw committed Feb 29, 2024
1 parent 0da3d65 commit fff7388
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mesads/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
)


def oops(request):
raise RuntimeError("oops! this endpoint is used to test the HTTP/500 page")


urlpatterns = [
path("oops", oops, name="oops"),
path(
"registre_ads/",
login_required(views.ADSRegisterView.as_view()),
Expand Down

0 comments on commit fff7388

Please sign in to comment.