view web/hgbook/urls.py @ 673:ad304b606163

Initial cut at web comment system import
author Bryan O'Sullivan <bos@serpentine.com>
date Tue, 10 Mar 2009 21:42:19 -0700
parents
children 1735c9699f92
line wrap: on
line source

import os
from django.conf.urls.defaults import *
import hgbook.comments.feeds as feeds

feeds = {
    'comments': feeds.Comments,
    }

urlpatterns = patterns('',
    (r'^comments/', include('hgbook.comments.urls')),

    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
     {'feed_dict': feeds}),          

    # Only uncomment this for local testing without Apache.
    # (r'^html/(?P<path>.*)$', 'django.views.static.serve',
    # {'document_root': os.path.realpath(os.path.dirname(
    #    sys.modules[__name__].__file__) + '/../../en/html'),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
)