author | amit |
Fri, 15 Oct 2010 15:59:28 +0530 | |
changeset 2 | f5e18f8ed036 |
parent 0 | 54f784230511 |
child 3 | de4a2ed2f34b |
permissions | -rw-r--r-- |
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
1 |
from django.conf.urls.defaults import * |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
2 |
from django.contrib import admin |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
3 |
# Uncomment the next two lines to enable the admin: |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
4 |
# from django.contrib import admin |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
5 |
admin.autodiscover() |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
6 |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
7 |
urlpatterns = patterns('', |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
8 |
# Example: |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
9 |
# (r'^sphinx_django/', include('sphinx_django.foo.urls')), |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
10 |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
11 |
(r'^test/','sphinxcomment.views.test' ), |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
12 |
(r'chapter/', 'sphinxcomment.views.chapter'), |
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
13 |
(r'count/(?P<chapter_name>.+)?$', 'sphinxcomment.views.chapter_count'), |
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
14 |
(r'single/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.single'), |
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
15 |
(r'submit/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.submit'), |
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
16 |
(r'^static/(?P<path>.*)$', 'django.views.static.serve', |
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
17 |
{'document_root': '/home/amit/review/sttp_test/_build/commenthtml/'}), |
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
18 |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
19 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
20 |
# to INSTALLED_APPS to enable admin documentation: |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
21 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
22 |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
23 |
# Uncomment the next line to enable the admin: |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
24 |
(r'^admin/', include(admin.site.urls)), |
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
25 |
) |