root/trunk/djangoid/urls.py

Revision 11, 1.4 kB (checked in by nicolast, 5 years ago)

- Model help texts
- Login system

Line 
1 #Djangoid - Django-based OpenID server/provider
2 #Copyright (C) 2006  Nicolas Trangez <ikke nicolast be>
3 #
4 #This program is free software; you can redistribute it and/or modify
5 #it under the terms of the GNU General Public License as published by
6 #the Free Software Foundation; either version 2 of the License.
7 #
8 #This program is distributed in the hope that it will be useful,
9 #but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #GNU General Public License for more details.
12 #
13 #You should have received a copy of the GNU General Public License
14 #along with this program; if not, write to the Free Software
15 #Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
16 #
17 #EOL
18 from django.conf.urls.defaults import *
19
20 urlpatterns = patterns('',
21     # Example:
22     # (r'^djangoid/', include('djangoid.apps.foo.urls.foo')),
23     (r'^testid/$', 'djangoid.users.views.testid'),
24     (r'^yadis/$', 'djangoid.server.views.serveryadis'),
25     (r'^admin/', include('django.contrib.admin.urls')),
26     (r'^login/$', 'django.contrib.auth.views.login', {"template_name": "users/login.html"}),
27     (r'^accept/$', 'djangoid.users.views.accept'),
28     (r'^(?P<uid>[^/]+)/yadis/$', 'djangoid.users.views.useryadis'),
29     (r'^(?P<uid>[^/]+)/foaf/$', 'djangoid.users.views.userfoaf'),
30     (r'^(?P<uid>[^/]+)/$', 'djangoid.users.views.userpage'),
31     (r'^$', 'djangoid.server.views.endpoint'),
32 )
Note: See TracBrowser for help on using the browser.