9 lines
311 B
Python
9 lines
311 B
Python
from django.urls import re_path, path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
# Add a URL pattern that captures the file path
|
|
path('<folder>/<str:file_hash>', views.serve_content_file, name='serve_content_file'),
|
|
# Other URL patterns if any
|
|
path('upload/', views.fileUpload, name='file_upload'),
|
|
]
|