Update: files app_name in urls.py
This commit is contained in:
parent
f652b213cf
commit
6e8ff8a4e6
1 changed files with 5 additions and 3 deletions
|
@ -1,9 +1,11 @@
|
||||||
from django.urls import re_path, path
|
from django.urls import re_path, path
|
||||||
from . import views
|
from .views import serve_content_file, fileUpload
|
||||||
|
|
||||||
|
app_name = "files"
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# Add a URL pattern that captures the file path
|
# Add a URL pattern that captures the file path
|
||||||
path('<folder>/<str:file_hash>', views.serve_content_file, name='serve_content_file'),
|
path('<folder>/<str:file_hash>', serve_content_file, name='serve_content_file'),
|
||||||
# Other URL patterns if any
|
# Other URL patterns if any
|
||||||
path('upload/', views.fileUpload, name='file_upload'),
|
path('upload/', fileUpload, name='file_upload'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue