Fixed issues with not being able to create a super user.

This commit is contained in:
SergeantPanda 2025-03-03 19:43:12 -06:00
parent 063ec0c520
commit 1ad84164a6
2 changed files with 6 additions and 3 deletions

View file

@ -140,7 +140,10 @@ SERVER_IP = "127.0.0.1"
CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True
CSRF_TRUSTED_ORIGINS = ['*']
CSRF_TRUSTED_ORIGINS = [
'http://*',
'https://*'
]
APPEND_SLASH = True
REST_FRAMEWORK = {

View file

@ -24,14 +24,14 @@ schema_view = get_schema_view(
urlpatterns = [
# API Routes
path('api/', include(('apps.api.urls', 'api'), namespace='api')),
path('output/', include('apps.output.urls', namespace='output')),
path('api', RedirectView.as_view(url='/api/', permanent=True)),
# Admin
path('admin', RedirectView.as_view(url='/admin/', permanent=True)), # This fixes the issue
path('admin/', admin.site.urls),
# Outputs
path('output', RedirectView.as_view(url='/output/', permanent=True)), # This fixes the issue
path('output', RedirectView.as_view(url='/output/', permanent=True)),
path('output/', include(('apps.output.urls', 'output'), namespace='output')),
# HDHR