From 6e8ff8a4e62eda2ea00564012a869d7fef97a768 Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Thu, 14 Mar 2024 19:49:51 +0100 Subject: [PATCH] Update: files app_name in urls.py --- archivist/apps/files/urls.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/archivist/apps/files/urls.py b/archivist/apps/files/urls.py index 609f4a9..9d3e56d 100644 --- a/archivist/apps/files/urls.py +++ b/archivist/apps/files/urls.py @@ -1,9 +1,11 @@ from django.urls import re_path, path -from . import views +from .views import serve_content_file, fileUpload + +app_name = "files" urlpatterns = [ # Add a URL pattern that captures the file path - path('/', views.serve_content_file, name='serve_content_file'), + path('/', serve_content_file, name='serve_content_file'), # Other URL patterns if any - path('upload/', views.fileUpload, name='file_upload'), + path('upload/', fileUpload, name='file_upload'), ]