SEESenv/web/hgbook/urls.py
changeset 8 d7db9561766e
parent 7 e9bf8b47a809
child 11 a7bd4bca6f6e
equal deleted inserted replaced
7:e9bf8b47a809 8:d7db9561766e
     8 feeds = {
     8 feeds = {
     9     'comments': feeds.Comments,
     9     'comments': feeds.Comments,
    10     }
    10     }
    11 
    11 
    12 urlpatterns = patterns('',
    12 urlpatterns = patterns('',
    13     (r'^comments/', include('hgbook.comments.urls')),
    13     (r'^/review/comments/', include('hgbook.comments.urls')),
    14 
    14 
    15     (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
    15     (r'^/review/feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
    16      {'feed_dict': feeds}),          
    16      {'feed_dict': feeds}),          
    17     (r'^index$', 'hgbook.comments.views.index'), 
    17     (r'^review/$', 'hgbook.comments.views.index'), 
    18 
    18 
    19     (r'^search/', 'hgbook.comments.views.search'), 
    19     (r'^/review/search/', 'hgbook.comments.views.search'), 
    20 
    20 
    21     # Only uncomment this for local testing without Apache.
    21     # Only uncomment this for local testing without Apache.
    22      (r'^html/(?P<path>.*)$', 'django.views.static.serve',
    22      (r'^/review/html/(?P<path>.*)$', 'django.views.static.serve',
    23      {'document_root': os.path.realpath(os.path.dirname(
    23      {'document_root': os.path.realpath(os.path.dirname(
    24         sys.modules[__name__].__file__) + '/../html/')}),
    24         sys.modules[__name__].__file__) + '/../html/')}),
    25      (r'^support/(?P<path>.*)$', 'django.views.static.serve',
    25      (r'^/review/support/(?P<path>.*)$', 'django.views.static.serve',
    26      {'document_root': os.path.realpath(os.path.dirname(
    26      {'document_root': os.path.realpath(os.path.dirname(
    27         sys.modules[__name__].__file__) + '/../support/')}),
    27         sys.modules[__name__].__file__) + '/../support/')}),
    28 
    28 
    29     # Uncomment this for admin:
    29     # Uncomment this for admin:
    30     (r'^admin/(.*)', admin.site.root),
    30     (r'^admin/(.*)', admin.site.root),