SEESenv/web/hgbook/urls.py
author amit@thunder
Wed, 10 Mar 2010 17:39:26 +0530
changeset 45 b5bff924ef69
parent 17 abf126e51dbc
permissions -rwxr-xr-x
Some more changes to soup is made in final html also comment.html has been changed so the links don't appear

import os, sys
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}),          
    (r'^$', 'hgbook.comments.views.index'), 

    (r'^search/', 'hgbook.comments.views.search'), 
	
    # 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__) + '/../html/')}),
     (r'^support/(?P<path>.*)$', 'django.views.static.serve',
     {'document_root': os.path.realpath(os.path.dirname(
        sys.modules[__name__].__file__) + '/../support/')}),

    # Uncomment this for admin:
    (r'^admin/(.*)', admin.site.root),
)