hgbook

view web/hgbook/urls.py @ 1031:d6d7136b0f74

Merge with gpiancastelli
author Bryan O'Sullivan <bos@serpentine.com>
date Sat Jul 10 06:24:30 2010 +0100 (2010-07-10)
parents bc64bbc47c86
children
line source
1 import os, sys
2 from django.conf.urls.defaults import *
3 import hgbook.comments.feeds as feeds
4 from django.contrib import admin
6 admin.autodiscover()
8 feeds = {
9 'comments': feeds.Comments,
10 }
12 urlpatterns = patterns('',
13 (r'^comments/', include('hgbook.comments.urls')),
15 (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
16 {'feed_dict': feeds}),
18 # Only uncomment this for local testing without Apache.
19 (r'^html/(?P<path>.*)$', 'django.views.static.serve',
20 {'document_root': os.path.realpath(os.path.dirname(
21 sys.modules[__name__].__file__) + '/../html')}),
22 (r'^support/(?P<path>.*)$', 'django.views.static.serve',
23 {'document_root': os.path.realpath(os.path.dirname(
24 sys.modules[__name__].__file__) + '/../support')}),
26 # Uncomment this for admin:
27 (r'^admin/(.*)', admin.site.root),
28 )