mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Fixed issues with not being able to create a super user.
This commit is contained in:
parent
063ec0c520
commit
1ad84164a6
2 changed files with 6 additions and 3 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue