1. Incuna
  2. Untitled project
  3. feincms-articles

Commits

Max Peterson  committed 9ec4489

URL scheme that supports nesting - not convinced.

  • Participants
  • Parent commits cc96c92
  • Branches v0.2dev

Comments (0)

Files changed (1)

File articles/modules/category/extensions/category.py

View file
     def get_urlpatterns(cls):
         from articles.modules.category import views
         return patterns('',
-                url(r'^(?P<category_url>[a-z0-9_/-]+/)(?P<slug>[a-z0-9_-]+)/$', views.CategoryArticleDetail.as_view(), name="article_detail"),
-                url(r'^(?P<category_url>[a-z0-9_/-]+/)$', views.CategoryArticleList.as_view(), name='article_category'),
+                url(r'^(?P<category_url>[a-z0-9_/-]+/)articles/(?P<slug>[a-z0-9_-]+)/$', views.CategoryArticleDetail.as_view(), name="article_detail"),
+                url(r'^(?P<category_url>[a-z0-9_/-]+/)articles/$', views.CategoryArticleList.as_view(), name='article_category'),
                 url(r'^$', views.CategoryArticleList.as_view(), name='article_index'),
        ) 
     cls.get_urlpatterns = get_urlpatterns