from django.conf.urls import patterns, url
from .views import FaqQuestionList, FaqCategoryDetail, FaqQuestionDetail

urlpatterns = patterns('',
    url(r'^$', FaqQuestionList.as_view(), name='faqquestion_index'),
    url(r'^(?P<slug>[^/]+)/$', FaqCategoryDetail.as_view(), name='faqcategory_detail'),
    url(r'^(?P<cat_slug>[^/]+)/(?P<slug>[^/]+)/$', FaqQuestionDetail.as_view(), name='faqquestion_detail'),
)

from django.conf.urls import url
from .views import FaqQuestionList, FaqCategoryDetail, FaqQuestionDetail

urlpatterns = [
    url(r'^$', FaqQuestionList.as_view(), name='faqquestion_index'),
    url(r'^(?P<slug>[^/]+)/$', FaqCategoryDetail.as_view(), name='faqcategory_detail'),
    url(r'^(?P<cat_slug>[^/]+)/(?P<slug>[^/]+)/$', FaqQuestionDetail.as_view(), name='faqquestion_detail'),
]

Fix Django 1.9 warnings about patterns('', ..)
Fix Django 1.9 warnings about patterns('', ..)

- from django.conf.urls import patterns, url
+ from django.conf.urls import url
  from .views import FaqQuestionList, FaqCategoryDetail, FaqQuestionDetail
  
- urlpatterns = patterns('',
+ urlpatterns = [
      url(r'^$', FaqQuestionList.as_view(), name='faqquestion_index'),
      url(r'^(?P<slug>[^/]+)/$', FaqCategoryDetail.as_view(), name='faqcategory_detail'),
      url(r'^(?P<cat_slug>[^/]+)/(?P<slug>[^/]+)/$', FaqQuestionDetail.as_view(), name='faqquestion_detail'),
- )
+ ]
  
Fix Django 1.9 warnings about patterns('', ..)
## Code Before:
from django.conf.urls import patterns, url
from .views import FaqQuestionList, FaqCategoryDetail, FaqQuestionDetail

urlpatterns = patterns('',
    url(r'^$', FaqQuestionList.as_view(), name='faqquestion_index'),
    url(r'^(?P<slug>[^/]+)/$', FaqCategoryDetail.as_view(), name='faqcategory_detail'),
    url(r'^(?P<cat_slug>[^/]+)/(?P<slug>[^/]+)/$', FaqQuestionDetail.as_view(), name='faqquestion_detail'),
)

## Instruction:
Fix Django 1.9 warnings about patterns('', ..)
## Code After:
from django.conf.urls import url
from .views import FaqQuestionList, FaqCategoryDetail, FaqQuestionDetail

urlpatterns = [
    url(r'^$', FaqQuestionList.as_view(), name='faqquestion_index'),
    url(r'^(?P<slug>[^/]+)/$', FaqCategoryDetail.as_view(), name='faqcategory_detail'),
    url(r'^(?P<cat_slug>[^/]+)/(?P<slug>[^/]+)/$', FaqQuestionDetail.as_view(), name='faqquestion_detail'),
]
