-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
25 lines (21 loc) · 803 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.conf.urls.defaults import *
from django.contrib import admin
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
admin.autodiscover()
js_info_dict = {
'packages': ('newsfeed',),
}
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^login/?$', 'django.contrib.auth.views.login',{
'authentication_form': AuthenticationForm,
#'next': '/',
'template_name': 'login.html',}),
(r'^logout/?$', 'django.contrib.auth.views.logout',
{'next_page': '/',}),
(r'^newest/(?P<after>\w+)/?$','newsfeed.views.newest'),
(r'^older/(?P<before>\w+)/?$','newsfeed.views.older'),
(r'^newsfeed/',include('newsfeed.urls')),
(r'^socialauth/',include('socialauth.urls')),
(r'^$','newsfeed.views.index'),
)