mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
updated routing
This commit is contained in:
1 parent
478d3a7489
commit
952d15b6ca
2 files changed
+6
-5
No files matched your search
@@ -7,10 +7,11 @@ from django.conf.urls.static import static
|
||||
from django.views.static import serve
|
||||
import os
|
||||
|
||||
# Ensure the admin path is clean and always ends with a slash for Django
|
||||
# Clean the admin path
|
||||
admin_url = os.environ.get('ADMIN_URL', 'admin').strip('/')
|
||||
|
||||
urlpatterns = [
|
||||
# Ensure admin ends with a slash for Django's redirection logic
|
||||
path(f'{admin_url}/', admin.site.urls),
|
||||
path('api/', include('api.urls')),
|
||||
path('api/token/', obtain_auth_token, name='api_token'),
|
||||
|
||||
Reference in new issue
Block a user