annotate urls.py @ 192:7ec7f6a30592

Added comments url to handle comments
author ahsanalishahid <ahsan.ali.shahid@gmail.com>
date Tue, 02 Jul 2013 01:56:35 +0500
parents 8da14d503af8
children
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 *
106
17bc502c65a4 Update "code" page
dellsystem <ilostwaldo@gmail.com>
parents: 97
diff changeset
2 from django.views.generic import ListView
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
3
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
4 # Uncomment the next two lines to enable the admin:
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
5 from django.contrib import admin
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
6 admin.autodiscover()
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
7
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
8 urlpatterns = patterns('',
78
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
9 url(r'^$',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
10 'django.views.generic.simple.direct_to_template',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
11 {'template': 'index.djhtml'},
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
12 name='home'),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
13 url(r'^about$',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
14 'django.views.generic.simple.direct_to_template',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
15 {'template': 'about.djhtml'},
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
16 name='about'),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
17 url(r'^help$',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
18 'django.views.generic.simple.direct_to_template',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
19 {'template': 'help.djhtml'},
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
20 name='help'),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
21 url(r'^discuss$',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
22 'django.views.generic.simple.direct_to_template',
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
23 {'template': 'discuss.djhtml'},
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
24 name='discuss'),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
25 url(r'^code$',
106
17bc502c65a4 Update "code" page
dellsystem <ilostwaldo@gmail.com>
parents: 97
diff changeset
26 'views.code',
78
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
27 name='code'),
107
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 106
diff changeset
28 url(r'^login',
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 106
diff changeset
29 'views.login_register',
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 106
diff changeset
30 name='login'),
78
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
31 url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
32 url(r'^admin/', include(admin.site.urls)),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
33 url(r'^accounts/logout/', 'django.contrib.auth.views.logout',
107
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 106
diff changeset
34 {'template_name' : 'index.djhtml', 'next_page' : '/'}
2bca07be6e51 Add login popup box
dellsystem <ilostwaldo@gmail.com>
parents: 106
diff changeset
35 ),
78
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
36 url(r'^accounts/', include('registration.urls')),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
37 url(r'^licenses/', include('agora.apps.free_license.urls')),
97
bf731c77ddf9 Change URL mapping from user/ to users/ for profile app
dellsystem <ilostwaldo@gmail.com>
parents: 78
diff changeset
38 url(r'^users/', include('agora.apps.profile.urls')),
78
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
39 url(r'^snippet/', include('agora.apps.snippet.urls')),
d416b8198889 Use named URLs and the url function where applicable
dellsystem <ilostwaldo@gmail.com>
parents: 63
diff changeset
40 url(r'^bundles/', include('agora.apps.bundle.urls')),
192
7ec7f6a30592 Added comments url to handle comments
ahsanalishahid <ahsan.ali.shahid@gmail.com>
parents: 126
diff changeset
41 url(r'^comments/', include('django.contrib.comments.urls')),
0
448f907a9d7e Initial Agora Octave commit
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
42 )
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
43
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
44 #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
45 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
46
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
47 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
48 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
49 (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
50 {'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
51 )