annotate gpp/ygroup/urls.py @ 504:b5bd3509e6e6
Made some tweaks to the ajax login javascript.
Cleared the inputs on failure so someone won't repeatedly try a bad login.
Redirect on lockout so the page will refresh.
Set focus on the username box after failure for convenience.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sat, 03 Dec 2011 16:25:15 +0000 |
parents |
0c18dfb1da1c |
children |
ddd69a8e07c7 |
rev |
line source |
bgneal@323
|
1 """
|
bgneal@323
|
2 urls.py - URLs for the ygroup application.
|
bgneal@323
|
3
|
bgneal@323
|
4 """
|
bgneal@323
|
5 from django.conf.urls.defaults import *
|
bgneal@323
|
6 from django.views.generic import ListView, DetailView
|
bgneal@323
|
7
|
bgneal@323
|
8 from ygroup.models import Thread, Post
|
bgneal@323
|
9 from ygroup.views import ThreadIndexView, ThreadView
|
bgneal@323
|
10
|
bgneal@323
|
11
|
bgneal@323
|
12 urlpatterns = patterns('',
|
bgneal@323
|
13 url(r'^threads/$',
|
bgneal@323
|
14 ThreadIndexView.as_view(),
|
bgneal@323
|
15 name='ygroup-thread_index'),
|
bgneal@323
|
16 url(r'^thread/(\d+)/$',
|
bgneal@323
|
17 ThreadView.as_view(),
|
bgneal@323
|
18 name='ygroup-thread_view'),
|
bgneal@323
|
19 url(r'^post/(?P<pk>\d+)/$',
|
bgneal@323
|
20 DetailView.as_view(model=Post, context_object_name='post'),
|
bgneal@323
|
21 name='ygroup-post_view'),
|
bgneal@323
|
22 )
|
bgneal@323
|
23
|