Skip to content

Commit

Permalink
fix: No django_browser_reload in deployment
Browse files Browse the repository at this point in the history
Fixes #34
  • Loading branch information
YDX-2147483647 committed Aug 11, 2023
1 parent 70633d1 commit ad4f61e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion contest/contest/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@
from django.urls import include, path
from django_cas_ng import views as cas_views

from .settings import DEBUG

urlpatterns = [
path("", include("quiz.urls")),
path("admin/", admin.site.urls),
path("accounts/login/", cas_views.LoginView.as_view(), name="login"),
path("accounts/logout/", cas_views.LogoutView.as_view(), name="logout"),
path("__reload__/", include("django_browser_reload.urls")),
]

if DEBUG:
urlpatterns.extend(
[
path("__reload__/", include("django_browser_reload.urls")),
]
)

0 comments on commit ad4f61e

Please sign in to comment.