urls.py 729 Bytes
Newer Older
luxcem's avatar
luxcem committed
1
from django.conf.urls import url
2
from rp.views.articles import ArticleListFlux, ArticleEdit, ArticleDetailView
luxcem's avatar
luxcem committed
3 4

urlpatterns = [
luxcem's avatar
luxcem committed
5
    url(
cynddl's avatar
cynddl committed
6 7
        r"^article/list/(?P<filter_view>\w+)",
        ArticleListFlux.as_view(),
luxcem's avatar
luxcem committed
8 9
        name="article-list"
    ),
10 11 12 13 14
    url(
        r"^article/list",
        ArticleListFlux.as_view(),
        name="article-list"
    ),
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    url(
        r"^article/edit/(?P<pk>\d+)",
        ArticleEdit.as_view(),
        name="article-edit"
    ),
    url(
        r"^article/view/(?P<pk>\d+)",
        ArticleDetailView.as_view(),
        name="article-view"
    ),
    url(
        r"^article/preview/(?P<pk>\d+)",
        ArticleDetailView.as_view(preview=True),
        name="article-preview"
    )
luxcem's avatar
luxcem committed
30
]