sphinx_django/urls.py
author amit
Wed, 27 Oct 2010 13:59:11 +0530
changeset 3 de4a2ed2f34b
parent 2 f5e18f8ed036
permissions -rw-r--r--
Adding readme files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
3
de4a2ed2f34b Adding readme files
amit
parents: 2
diff changeset
     3
import os
0
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
     4
# 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
     5
# from django.contrib import admin
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
     6
admin.autodiscover()
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
     7
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
     8
urlpatterns = patterns('',
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
     9
    # Example:
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    10
    # (r'^sphinx_django/', include('sphinx_django.foo.urls')),
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    11
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    12
    (r'^test/','sphinxcomment.views.test' ),
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    13
    (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
    14
    (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
    15
    (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
    16
    (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
    17
    # 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
    18
    # to INSTALLED_APPS to enable admin documentation:
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    19
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    20
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    21
    # Uncomment the next line to enable the admin:
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    22
     (r'^admin/', include(admin.site.urls)),
3
de4a2ed2f34b Adding readme files
amit
parents: 2
diff changeset
    23
     (r'^pages/_static/(?P<path>.*)$', 'django.views.static.serve',
de4a2ed2f34b Adding readme files
amit
parents: 2
diff changeset
    24
     {'document_root': os.path.join(os.getcwd(),'static')}),
de4a2ed2f34b Adding readme files
amit
parents: 2
diff changeset
    25
                    
de4a2ed2f34b Adding readme files
amit
parents: 2
diff changeset
    26
     (r'^pages/(?P<path>.*)$', 'sphinxcomment.views.page'),
0
54f784230511 Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff changeset
    27
)