annotate urls.py @ 29:6ba969517b9c

Implement initial profiles, cleanup models, change Free_license to FreeLicense
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 30 Jun 2010 00:04:34 -0500
parents 2e7226e90157
children 290dd9208cc4
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
29
6ba969517b9c Implement initial profiles, cleanup models, change Free_license to FreeLicense
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 24
diff changeset
21 (r'^(?P<user>[\w|_]*)/$', 'agora.apps.profile.views.showprofile'),
6ba969517b9c Implement initial profiles, cleanup models, change Free_license to FreeLicense
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 24
diff changeset
22
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 11
diff changeset
23 (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
24
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
25 )
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
26
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 #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
28 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
29
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
30 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
31 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
32 (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
33 {'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
34 )
8be7bdae8fb6 Fix some bugs on how static data was served during debug
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 7
diff changeset
35