annotate urls.py @ 24:2e7226e90157

Many fixes. See detailed description. - Style errors - Writer proper 404 and 500 templates - Make login page redirect back to page being viewed (still buggy?) - Provide a brief blurb about Agora - Use tables for registration and login forms (need to be styled) - Fix typos, grammatical errors. - Don't use .djhtml extension for some templates
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Mon, 28 Jun 2010 03:00:01 -0500
parents d9658d30b814
children 6ba969517b9c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
1 from django.conf.urls.defaults import *
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
2
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
3 # Uncomment the next two lines to enable the admin:
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
4 from django.contrib import admin
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
5 admin.autodiscover()
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
6
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
7 urlpatterns = patterns('',
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
8 (r'^$',
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
9 'django.views.generic.simple.direct_to_template',
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
10 {'template': 'index.djhtml'}),
2
3cef0d445036 Start actual app structure
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 1
diff changeset
11
7
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
12
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
13 (r'^admin/doc/', include('django.contrib.admindocs.urls')),
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
14 (r'^admin/', include(admin.site.urls)),
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
15
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
16 (r'^accounts/logout/', 'django.contrib.auth.views.logout',
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
17 {'template_name' : 'index.djhtml', 'next_page' : '/'}),
4
069cabdaf8b2 Define stub template and admin site
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 2
diff changeset
18
24
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
19 (r'^accounts/', include('registration.urls')),
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
20
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
21 (r'^', include('agora.apps.bundle.urls')),
4
069cabdaf8b2 Define stub template and admin site
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 2
diff changeset
22
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
23 )
7
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
24
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
25 #Let Django itself serve static data during debugging
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
26 from django.conf import settings
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
27
6c2d400091fd Decouple bundle urlconfs; improve the skeleton layout to more than a few bones
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 4
diff changeset
28 if settings.DEBUG:
8
8be7bdae8fb6 Fix some bugs on how static data was served during debug
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7
diff changeset
29 urlpatterns += patterns('',
8be7bdae8fb6 Fix some bugs on how static data was served during debug
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7
diff changeset
30 (r'^static/(?P<path>.*)$', 'django.views.static.serve',
11
71024a491161 Rename media/ dir to static/, update the settings-example.py file
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 8
diff changeset
31 {'document_root': 'static/', 'show_indexes': True}),
8
8be7bdae8fb6 Fix some bugs on how static data was served during debug
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7
diff changeset
32 )
8be7bdae8fb6 Fix some bugs on how static data was served during debug
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7
diff changeset
33