Mercurial > public > sg101
comparison gpp/accounts/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 | 886cc99e8406 |
children |
comparison
equal
deleted
inserted
replaced
573:bcc4e8cf841b | 574:ddd69a8e07c7 |
---|---|
1 """urls for the accounts application""" | 1 """urls for the accounts application""" |
2 from django.conf.urls.defaults import * | 2 from django.conf.urls import patterns, url |
3 from django.conf import settings | 3 from django.conf import settings |
4 | 4 |
5 urlpatterns = patterns('accounts.views', | 5 urlpatterns = patterns('accounts.views', |
6 url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'), | 6 url(r'^login/ajax/$', 'login_ajax', name='accounts-login_ajax'), |
7 url(r'^register/$', 'register', name='accounts-register'), | 7 url(r'^register/$', 'register', name='accounts-register'), |