Removed feeds from devsite
[archweb_dev-nj.git] / urls.py
blobed6373a50ab7f4f0cbabed38e6253fb457beb97e
1 from django.conf.urls.defaults import *
2 from django.conf import settings
3 from archweb_dev.news.models import News
4 from django.views.decorators.cache import cache_page
6 urlpatterns = patterns('',
7 # Dynamic Stuff
8 (r'^packages/flag/(\d+)/$', 'archweb_dev.packages.views.flag'),
9 (r'^packages/flaghelp/$', 'archweb_dev.packages.views.flaghelp'),
10 (r'^packages/unflag/(\d+)/$', 'archweb_dev.packages.views.unflag'),
11 (r'^packages/files/(\d+)/$', 'archweb_dev.packages.views.files'),
12 (r'^packages/search/$', 'archweb_dev.packages.views.search'),
13 (r'^packages/search/([A-z0-9]+)/$', 'archweb_dev.packages.views.search'),
14 (r'^packages/update/$', 'archweb_dev.packages.views.update'),
15 (r'^packages/(?P<pkgid>\d+)/$', 'archweb_dev.packages.views.details'),
16 (r'^packages/(?P<name>[A-z0-9]+)/$', 'archweb_dev.packages.views.details'),
17 (r'^packages/(?P<repo>[A-z0-9]+)/(?P<name>[A-z0-9]+)/$', 'archweb_dev.packages.views.details'),
18 (r'^packages/$', 'archweb_dev.packages.views.search'),
20 (r'^todo/(\d+)/$', 'archweb_dev.todolists.views.view'),
21 (r'^todo/add/$', 'archweb_dev.todolists.views.add'),
22 (r'^todo/flag/(\d+)/(\d+)/$', 'archweb_dev.todolists.views.flag'),
23 (r'^todo/$', 'archweb_dev.todolists.views.list'),
25 (r'^news/(\d+)/$', 'archweb_dev.news.views.view'),
26 (r'^news/add/$', 'archweb_dev.news.views.add'),
27 (r'^news/edit/(\d+)/$', 'archweb_dev.news.views.edit'),
28 (r'^news/delete/(\d+)/$', 'archweb_dev.news.views.delete'),
29 (r'^news/$', 'archweb_dev.news.views.list'),
31 (r'^devel/$', 'archweb_dev.devel.views.index'),
32 (r'^devel/notify/$', 'archweb_dev.devel.views.change_notify'),
33 (r'^devel/profile/$', 'archweb_dev.devel.views.change_profile'),
34 (r'^devel/guide/$', 'archweb_dev.devel.views.guide'),
36 (r'^wiki/([A-Z]+[A-z0-9 :/-]+)/$', 'archweb_dev.wiki.views.page'),
37 (r'^wiki/edit/([A-Z]+[A-z0-9 :/-]+)/$', 'archweb_dev.wiki.views.edit'),
38 (r'^wiki/delete/$', 'archweb_dev.wiki.views.delete'),
39 (r'^wiki/index/$', 'archweb_dev.wiki.views.index'),
40 (r'^wiki/$', 'archweb_dev.wiki.views.main'),
42 # (mostly) Static Pages
43 (r'^$', 'archweb_dev.devel.views.siteindex'),
44 (r'^about/$', 'archweb_dev.devel.views.about'),
45 (r'^art/$', 'archweb_dev.devel.views.art'),
46 (r'^cvs/$', 'archweb_dev.devel.views.cvs'),
47 (r'^developers/$', 'archweb_dev.devel.views.developers'),
48 (r'^donate/$', 'archweb_dev.devel.views.donate'),
49 (r'^download/$', 'archweb_dev.devel.views.download'),
50 (r'^irc/$', 'archweb_dev.devel.views.irc'),
51 (r'^moreforums/$', 'archweb_dev.devel.views.moreforums'),
52 (r'^press/$', 'archweb_dev.devel.views.press'),
53 (r'^projects/$', 'archweb_dev.devel.views.projects'),
54 (r'^robots.txt$', 'archweb_dev.devel.views.robots'),
56 # Authentication / Admin
57 (r'^denied/$', 'archweb_dev.devel.views.denied'),
58 (r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}),
59 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}),
60 (r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
61 (r'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
62 (r'^admin/', include('django.contrib.admin.urls')),
65 if settings.DEBUG == True:
66 urlpatterns += patterns('',
67 (r'^media/(.*)$', 'django.views.static.serve',
68 {'document_root': settings.DEPLOY_PATH+'/media'}))
70 # vim: set ts=4 sw=4 et: