This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
static-share/project/urls.py

15 lines
565 B
Python

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from project.files.views import uploaded_file
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^admin_resumable/', include('admin_resumable.urls')),
url(r'^files/', include('project.files.urls', namespace="files")),
url(r'^uploads/(?P<filename>.*)', uploaded_file, name="upload"),
url(r'', include("project.pages.urls", namespace="pages"))
]
urlpatterns += staticfiles_urlpatterns()