view web/hgbook/urls.py @ 761:bc9dc4f2f912

Add tip.png and warning.png
author Dongsheng Song <dongsheng.song@gmail.com>
date Tue, 31 Mar 2009 11:11:43 +0800
parents ad304b606163
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')),
)