<reponame>MichalCelinski/Blog
from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^(?P<article_id>\d+)/share/$', views.ArticleShareView.as_view(), name='article_share'),
    url(r'^(?P<article_id>\d+)/comment/$', views.ArticleCommentView.as_view(), name='article_comment'),
    url(r'^tag/(?P<tag_slug>(\S)+)$', views.ArticlesListbyTagView.as_view(), name='articles_list_by_tag'),
    url(r'^(?P<slug>(\S)+)$', views.ArticleView.as_view(), name='article_details'),
    url(r'^$', views.ArticlesListView.as_view(), name='articles_list'),
]
from django.conf.urls import url
from . import views


urlpatterns = [
    url(r'^(?P<article_id>\d+)/share/$', views.ArticleShareView.as_view(), name='article_share'),
    url(r'^(?P<article_id>\d+)/comment/$', views.ArticleCommentView.as_view(), name='article_comment'),
    url(r'^tag/(?P<tag_slug>(\S)+)$', views.ArticlesListbyTagView.as_view(), name='articles_list_by_tag'),
    url(r'^(?P<slug>(\S)+)$', views.ArticleView.as_view(), name='article_details'),
    url(r'^$', views.ArticlesListView.as_view(), name='articles_list'),
]