Skip to content

Commit

Permalink
fix: Attempt to fix run-time errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Jan 22, 2025
1 parent 669ac5d commit cbde75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions api/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.conf import settings
from django.conf.urls import include
from django.urls import path
from rest_framework.authtoken import views as drf_views
Expand Down Expand Up @@ -159,9 +158,5 @@ def schema_view(request):
path("auth/", drf_views.obtain_auth_token, name="auth"),
path("swagger/", schema_view),
path('token/', viewer_views.TokenView.as_view(), name="token_view"),
path("reset/", viewer_views.ResetView.as_view(), name='reset'),
]

# The _dangerous_ database and media 'reset' endpoint.
# Available only when the deployment is NOT 'PRODUCTION'
if settings.DEPLOYMENT_MODE != "PRODUCTION":
urlpatterns += [path("reset/", viewer_views.ResetView.as_view(), name='reset')]
2 changes: 1 addition & 1 deletion fragalysis/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""composeexample URL Configuration
"""URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Expand Down

0 comments on commit cbde75c

Please sign in to comment.