sphinx_django/urls.py~
author amit
Fri, 15 Oct 2010 15:59:28 +0530
changeset 2 f5e18f8ed036
parent 0 54f784230511
child 3 de4a2ed2f34b
permissions -rw-r--r--
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name

from django.conf.urls.defaults import *
from django.contrib import admin
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^sphinx_django/', include('sphinx_django.foo.urls')),

    (r'^test/','sphinxcomment.views.test' ),
    (r'chapter/', 'sphinxcomment.views.chapter'),
    (r'count/(?P<chapter_name>.+)?$', 'sphinxcomment.views.chapter_count'),                  
    (r'single/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.single'),
    (r'submit/(?P<paragraph_id>[^/]+)/$', 'sphinxcomment.views.submit'),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root': '/home/amit/review/sttp_test/_build/commenthtml/'}),
                       
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
     (r'^admin/', include(admin.site.urls)),
)