sphinx_django/urls.py
changeset 0 54f784230511
child 2 f5e18f8ed036
equal deleted inserted replaced
-1:000000000000 0:54f784230511
       
     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<id>[^/]+)/?$', 'sphinxcomment.views.single'),
       
    15     (r'submit/(?P<id>[^/]+)/?$', 'sphinxcomment.views.submit'),
       
    16     (r'^static/(?P<path>.*)$', 'django.views.static.serve',
       
    17      {'document_root': '/home/amit/review/sttp/_build/html/'}),
       
    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 )