From f55815bb29b3a6f5e17315de6f9f17855f69a310 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 28 Dec 2023 19:18:21 +0100 Subject: [PATCH] Add: url configs --- archivist/apps/files/urls.py | 9 +++++++++ archivist/core/urls.py | 1 + 2 files changed, 10 insertions(+) create mode 100644 archivist/apps/files/urls.py diff --git a/archivist/apps/files/urls.py b/archivist/apps/files/urls.py new file mode 100644 index 0000000..29ea12e --- /dev/null +++ b/archivist/apps/files/urls.py @@ -0,0 +1,9 @@ +from django.urls import re_path, path +from . import views + +urlpatterns = [ + # Add a URL pattern that captures the file path + path('submission/', views.serve_submission_file, name='serve_submission_file'), + # Other URL patterns if any + path('upload/', views.fileUpload, name='file_upload'), +] diff --git a/archivist/core/urls.py b/archivist/core/urls.py index cc9a25f..c41d958 100644 --- a/archivist/core/urls.py +++ b/archivist/core/urls.py @@ -21,6 +21,7 @@ admin.site.site_header = 'Gallery Archivist Django Admin Panel' urlpatterns = [ path('admin/', admin.site.urls), # Django admin route path("", include("apps.authentication.urls")), # Auth routes - login / register + path("files/", include("apps.files.urls")), path("", include("sites.furaffinity.urls")),