Mercurial > public > sg101
comparison gpp/comments/urls.py @ 574:ddd69a8e07c7
For Django 1.4, use django.conf.urls instead of django.conf.urls.defaults.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 03 May 2012 20:45:16 -0500 |
parents | 7b6540b185d9 |
children |
comparison
equal
deleted
inserted
replaced
573:bcc4e8cf841b | 574:ddd69a8e07c7 |
---|---|
1 """ | 1 """ |
2 URLs for the comments application. | 2 URLs for the comments application. |
3 """ | 3 """ |
4 from django.conf.urls.defaults import * | 4 from django.conf.urls import patterns, url |
5 | 5 |
6 urlpatterns = patterns('comments.views', | 6 urlpatterns = patterns('comments.views', |
7 url(r'^flag/$', 'flag_comment', name='comments-flag'), | 7 url(r'^flag/$', 'flag_comment', name='comments-flag'), |
8 url(r'^markdown/$', 'markdown_preview', name='comments-markdown_preview'), | 8 url(r'^markdown/$', 'markdown_preview', name='comments-markdown_preview'), |
9 url(r'^post/$', 'post_comment', name='comments-post'), | 9 url(r'^post/$', 'post_comment', name='comments-post'), |