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

16 lines
565 B
Python
Raw Normal View History

2016-09-05 08:36:06 +01:00
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
2016-09-06 17:48:43 +01:00
from project.files.views import uploaded_file
2016-09-05 08:36:06 +01:00
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
2016-09-05 18:53:49 +01:00
url(r'^admin_resumable/', include('admin_resumable.urls')),
2016-09-06 17:48:43 +01:00
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"))
2016-09-05 08:36:06 +01:00
]
urlpatterns += staticfiles_urlpatterns()