symposion_app/symposion/cms/urls.py

15 lines
541 B
Python
Raw Normal View History

2014-01-13 21:39:20 +00:00
from django.conf.urls import url, patterns
2012-07-10 22:18:48 +00:00
PAGE_RE = r"(([\w-]{1,})(/[\w-]{1,})*)/"
2014-01-13 21:39:20 +00:00
2012-07-10 22:18:48 +00:00
urlpatterns = patterns("symposion.cms.views",
2012-10-18 06:43:00 +00:00
url(r"^files/$", "file_index", name="file_index"),
url(r"^files/create/$", "file_create", name="file_create"),
url(r"^files/(\d+)/([^/]+)$", "file_download", name="file_download"),
url(r"^files/(\d+)/delete/$", "file_delete", name="file_delete"),
2012-07-10 22:18:48 +00:00
url(r"^(?P<path>%s)_edit/$" % PAGE_RE, "page_edit", name="cms_page_edit"),
url(r"^(?P<path>%s)$" % PAGE_RE, "page", name="cms_page"),
)