From a36d06766da6354328ec959409908c907b1ed681 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 3 Mar 2025 16:42:51 -0600 Subject: [PATCH 1/2] Combined requirements back in to 1 file. --- requirements-pytorch.txt | 2 -- requirements-sentence-transformers.txt | 1 - requirements.txt | 6 ++++++ 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 requirements-pytorch.txt delete mode 100644 requirements-sentence-transformers.txt diff --git a/requirements-pytorch.txt b/requirements-pytorch.txt deleted file mode 100644 index 86d7fce0..00000000 --- a/requirements-pytorch.txt +++ /dev/null @@ -1,2 +0,0 @@ ---index-url https://download.pytorch.org/whl/cpu/ -torch==2.6.0 diff --git a/requirements-sentence-transformers.txt b/requirements-sentence-transformers.txt deleted file mode 100644 index a8e6e758..00000000 --- a/requirements-sentence-transformers.txt +++ /dev/null @@ -1 +0,0 @@ -sentence-transformers==3.4.1 diff --git a/requirements.txt b/requirements.txt index 24921e57..6cb290c0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,3 +16,9 @@ django-cors-headers djangorestframework-simplejwt m3u8 rapidfuzz==3.12.1 +# PyTorch dependencies (CPU only) +--extra-index-url https://download.pytorch.org/whl/cpu/ +torch==2.6.0+cpu + +# ML/NLP dependencies +sentence-transformers==3.4.1 \ No newline at end of file From 1ad84164a68b7eb381b93bb83b5906b9eb5950e0 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Mon, 3 Mar 2025 19:43:12 -0600 Subject: [PATCH 2/2] Fixed issues with not being able to create a super user. --- dispatcharr/settings.py | 5 ++++- dispatcharr/urls.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dispatcharr/settings.py b/dispatcharr/settings.py index bb4a7f4e..3d2b90b0 100644 --- a/dispatcharr/settings.py +++ b/dispatcharr/settings.py @@ -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 = { diff --git a/dispatcharr/urls.py b/dispatcharr/urls.py index 4aa72aa6..3a3b3672 100644 --- a/dispatcharr/urls.py +++ b/dispatcharr/urls.py @@ -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