from django.urls import re_path, path from . import views urlpatterns = [ # Add a URL pattern that captures the file path path('/', views.serve_content_file, name='serve_content_file'), # Other URL patterns if any path('upload/', views.fileUpload, name='file_upload'), ]