""" URLs used by the faqs app """
from django.conf.urls import patterns, url

import views

urlpatterns = patterns('',
                       url(
                           r"^categories/$",
                           views.FaqCategoryListView.as_view(),
                           name="category_list"
                       ),
                       url(
                           r"^categories/(?P<category_title>[\w-]+)/$",
                           views.FaqCategoryView.as_view(),
                           name="category"
                       ),
                       url(
                           r"^$",
                           views.FaqListView.as_view(),
                           name="faq_list"
                       ),
                       url(
                           r"^(?P<faq_title>[\w-]+)/$",
                           views.FaqView.as_view(),
                           name="faq"
                       ),
)

""" URLs used by the faqs app """
from django.conf.urls import url

import views

urlpatterns = [
    url(r"^categories/$", views.FaqCategoryListView.as_view(), name="category_list"),
    url(r"^categories/(?P<category_title>[\w-]+)/$", views.FaqCategoryView.as_view(), name="category"),
    url(r"^$", views.FaqListView.as_view(), name="faq_list"),
    url(r"^(?P<faq_title>[\w-]+)/$", views.FaqView.as_view(), name="faq"),
]

Switch to the new URLs.py style. Ref onespacemedia/cms#80.