1 from django.conf.urls.defaults import * |
|
2 from django.contrib import admin |
|
3 # Uncomment the next two lines to enable the admin: |
|
4 # from django.contrib import admin |
|
5 admin.autodiscover() |
|
6 |
|
7 urlpatterns = patterns('', |
|
8 # Example: |
|
9 # (r'^sphinx_django/', include('sphinx_django.foo.urls')), |
|
10 |
|
11 (r'^test/','sphinxcomment.views.test' ), |
|
12 (r'chapter/', 'sphinxcomment.views.chapter'), |
|
13 (r'count/(?P<chapter_name>.+)?$', 'sphinxcomment.views.chapter_count'), |
|
14 (r'single/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.single'), |
|
15 (r'submit/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.submit'), |
|
16 (r'^static/(?P<path>.*)$', 'django.views.static.serve', |
|
17 {'document_root': '/home/amit/review/st-scripts/_build/commenthtml'}), |
|
18 |
|
19 # Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
20 # to INSTALLED_APPS to enable admin documentation: |
|
21 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
22 |
|
23 # Uncomment the next line to enable the admin: |
|
24 (r'^admin/', include(admin.site.urls)), |
|
25 (r'^pages/_static/(?P<path>.*)$', 'django.views.static.serve', |
|
26 {'document_root': '/home/amit/review/st-scripts/_build/commenthtml/_static'}), |
|
27 |
|
28 (r'^pages/(?P<path>.*)$', 'sphinxcomment.views.page'), |
|
29 ) |
|