updated routing

This commit is contained in:
nvrl committed 2026-02-16 17:41:06 +01:00
1 parent 478d3a7489
commit 952d15b6ca
2 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -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'),