comparison comments/urls.py @ 1028:5ba2508939f7

Django 1.8 changes; first batch.
author Brian Neal <bgneal@gmail.com>
date Tue, 15 Dec 2015 21:01:07 -0600
parents ee87ea74d46b
children 110bbc78a482
comparison
equal deleted inserted replaced
1027:cd4db27c90e3 1028:5ba2508939f7
1 """ 1 """
2 URLs for the comments application. 2 URLs for the comments application.
3 """ 3 """
4 from django.conf.urls import patterns, url 4 from django.conf.urls import url
5 import django.contrib.contenttypes.views
5 6
6 urlpatterns = patterns('comments.views', 7 import comments.views
7 url(r'^flag/$', 'flag_comment', name='comments-flag'),
8 url(r'^markdown/$', 'markdown_preview', name='comments-markdown_preview'),
9 url(r'^post/$', 'post_comment', name='comments-post'),
10 )
11 8
12 urlpatterns += patterns('', 9 urlpatterns = [
10 url(r'^flag/$', comments.views.flag_comment, name='comments-flag'),
11 url(r'^markdown/$', comments.views.markdown_preview, name='comments-markdown_preview'),
12 url(r'^post/$', comments.views.post_comment, name='comments-post'),
13 url(r'^cr/(\d+)/(\d+)/$', 13 url(r'^cr/(\d+)/(\d+)/$',
14 'django.contrib.contenttypes.views.shortcut', 14 django.contrib.contenttypes.views.shortcut,
15 name='comments-url-redirect'), 15 name='comments-url-redirect'),
16 ) 16 ]