diff -r f5e18f8ed036 -r de4a2ed2f34b sphinx_django/urls.py --- a/sphinx_django/urls.py Fri Oct 15 15:59:28 2010 +0530 +++ b/sphinx_django/urls.py Wed Oct 27 13:59:11 2010 +0530 @@ -1,5 +1,6 @@ from django.conf.urls.defaults import * from django.contrib import admin +import os # Uncomment the next two lines to enable the admin: # from django.contrib import admin admin.autodiscover() @@ -13,13 +14,14 @@ (r'count/(?P.+)?$', 'sphinxcomment.views.chapter_count'), (r'single/(?P[^/]+)/$', 'sphinxcomment.views.single'), (r'submit/(?P[^/]+)/$', 'sphinxcomment.views.submit'), - (r'^static/(?P.*)$', '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)), + (r'^pages/_static/(?P.*)$', 'django.views.static.serve', + {'document_root': os.path.join(os.getcwd(),'static')}), + + (r'^pages/(?P.*)$', 'sphinxcomment.views.page'), )