view web/hgbook/urls.py @ 838:d1f676a6a4b3 default tip

update mq chapter. propagate ef53d025f410.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Thu, 03 Dec 2009 01:26:08 +0900
parents 1735c9699f92
children
line wrap: on
line source

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

admin.autodiscover()

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/(.*)', admin.site.root),
)