Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (35 sloc) 2.87 KB
from django.conf.urls.defaults import *
from fusite.fu.feeds import MainFeed,CommentFeed,CommentModerationFeed
feeds = dict(main=MainFeed,
comments=CommentFeed,
moderation=CommentModerationFeed)
urlpatterns = patterns('',
(r'^$','fusite.fu.views.index'),
(r'^search/$','fusite.fu.views.search'),
(r'^team/$','fusite.fu.views.team'),
(r'^team/(?P<name>[^/]+)/$','fusite.fu.views.author'),
(r'^issues/(?P<year>\d+)\-(?P<month>\d+)\-(?P<day>\d+)/$', 'fusite.fu.views.issue'),
(r'^issues/(?P<year>\d+)\-(?P<month>\d+)\-(?P<day>\d+)/(?P<slug>[^/]+)/$', 'fusite.fu.views.article'),
(r'^issues/(?P<year>\d+)\-(?P<month>\d+)\-(?P<day>\d+)/(?P<slug>[^/]+)/add_comment/$', 'fusite.fu.views.add_comment'),
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/anders/code/python/fusite/media/'}),
(r'^uploads/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/tmp/fusite/data'}),
(r'^admin/', include('django.contrib.admin.urls')),
(r'^archives/', 'fusite.fu.views.archives'),
(r'^tags/$', 'fusite.fu.views.tags'),
(r'^tags/(?P<slug>[^/]+)/$', 'fusite.fu.views.tag'),
(r'^feeds/(?P<url>.*)/$','django.contrib.syndication.views.feed', {'feed_dict': feeds}),
(r'^fuadmin/$','fusite.fu.views.admin_index'),
(r'^fuadmin/image/$','fusite.fu.views.admin_image_index'),
(r'^fuadmin/image/(?P<id>\d+)/$','fusite.fu.views.admin_image'),
(r'^fuadmin/issue/(?P<id>\d+)/$','fusite.fu.views.admin_issue'),
(r'^fuadmin/issue/(?P<id>\d+)/publish/$','fusite.fu.views.admin_publish_issue'),
(r'^fuadmin/issue/(?P<id>\d+)/reorder/$','fusite.fu.views.admin_reorder_issue'),
(r'^fuadmin/issue/(?P<id>\d+)/edit_tags/$','fusite.fu.views.admin_edit_issue_tags'),
(r'^fuadmin/add_issue/$','fusite.fu.views.admin_add_issue'),
(r'^login/$', 'django.contrib.auth.views.login'),
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
(r'^logout/$','django.contrib.auth.views.logout'),
(r'^accounts/password_change/$','django.contrib.auth.views.password_change'),
(r'^accounts/password_change/done/$','django.contrib.auth.views.password_change_done'),
(r'^banner.css/$',"fusite.fu.views.banner_css"),
)