Mercurial > public > sg101
comparison gpp/ygroup/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 | 0c18dfb1da1c |
children |
comparison
equal
deleted
inserted
replaced
573:bcc4e8cf841b | 574:ddd69a8e07c7 |
---|---|
1 """ | 1 """ |
2 urls.py - URLs for the ygroup application. | 2 urls.py - URLs for the ygroup application. |
3 | 3 |
4 """ | 4 """ |
5 from django.conf.urls.defaults import * | 5 from django.conf.urls import patterns, url |
6 from django.views.generic import ListView, DetailView | 6 from django.views.generic import DetailView |
7 | 7 |
8 from ygroup.models import Thread, Post | 8 from ygroup.models import Post |
9 from ygroup.views import ThreadIndexView, ThreadView | 9 from ygroup.views import ThreadIndexView, ThreadView |
10 | 10 |
11 | 11 |
12 urlpatterns = patterns('', | 12 urlpatterns = patterns('', |
13 url(r'^threads/$', | 13 url(r'^threads/$', |