1 from django
.conf
.urls
.defaults
import *
2 from archlinux
.news
.models
import News
3 from archlinux
.feeds
import PackageFeed
, NewsFeed
6 'packages': PackageFeed
,
10 urlpatterns
= patterns('',
11 (r
'^media/(.*)$', 'django.views.static.serve', {'document_root': '/home/jvinet/shared/work/archlinux/media'}),
14 (r
'^packages/flag/(\d+)/$', 'archlinux.packages.views.flag'),
15 (r
'^packages/flaghelp/$', 'archlinux.packages.views.flaghelp'),
16 (r
'^packages/unflag/(\d+)/$', 'archlinux.packages.views.unflag'),
17 (r
'^packages/files/(\d+)/$', 'archlinux.packages.views.files'),
18 (r
'^packages/search/$', 'archlinux.packages.views.search'),
19 (r
'^packages/search/([A-z0-9]+)/$', 'archlinux.packages.views.search'),
20 (r
'^packages/update/$', 'archlinux.packages.views.update'),
21 (r
'^packages/(?P<pkgid>\d+)/$', 'archlinux.packages.views.details'),
22 (r
'^packages/(?P<name>[A-z0-9]+)/$', 'archlinux.packages.views.details'),
23 (r
'^packages/(?P<repo>[A-z0-9]+)/(?P<name>[A-z0-9]+)/$', 'archlinux.packages.views.details'),
24 (r
'^packages/$', 'archlinux.packages.views.search'),
26 (r
'^todo/(\d+)/$', 'archlinux.todolists.views.view'),
27 (r
'^todo/add/$', 'archlinux.todolists.views.add'),
28 (r
'^todo/flag/(\d+)/(\d+)/$', 'archlinux.todolists.views.flag'),
29 (r
'^todo/$', 'archlinux.todolists.views.list'),
31 (r
'^news/(\d+)/$', 'archlinux.news.views.view'),
32 (r
'^news/add/$', 'archlinux.news.views.add'),
33 (r
'^news/edit/(\d+)/$', 'archlinux.news.views.edit'),
34 (r
'^news/delete/(\d+)/$', 'archlinux.news.views.delete'),
35 (r
'^news/$', 'archlinux.news.views.list'),
37 (r
'^devel/$', 'archlinux.devel.views.index'),
38 (r
'^devel/notify/$', 'archlinux.devel.views.change_notify'),
39 (r
'^devel/profile/$', 'archlinux.devel.views.change_profile'),
40 (r
'^devel/guide/$', 'archlinux.devel.views.guide'),
42 (r
'^wiki/([A-Z]+[A-z0-9 :/-]+)/$', 'archlinux.wiki.views.page'),
43 (r
'^wiki/edit/([A-Z]+[A-z0-9 :/-]+)/$', 'archlinux.wiki.views.edit'),
44 (r
'^wiki/delete/$', 'archlinux.wiki.views.delete'),
45 (r
'^wiki/index/$', 'archlinux.wiki.views.index'),
46 (r
'^wiki/$', 'archlinux.wiki.views.main'),
49 (r
'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds
}),
51 # (mostly) Static Pages
52 (r
'^$', 'archlinux.public.views.index'),
53 (r
'^about/$', 'archlinux.public.views.about'),
54 (r
'^art/$', 'archlinux.public.views.art'),
55 (r
'^cvs/$', 'archlinux.public.views.cvs'),
56 (r
'^developers/$', 'archlinux.public.views.developers'),
57 (r
'^donate/$', 'archlinux.public.views.donate'),
58 (r
'^download/$', 'archlinux.public.views.download'),
59 (r
'^irc/$', 'archlinux.public.views.irc'),
60 (r
'^moreforums/$', 'archlinux.public.views.moreforums'),
61 (r
'^press/$', 'archlinux.public.views.press'),
62 (r
'^projects/$', 'archlinux.public.views.projects'),
64 # Authentication / Admin
65 (r
'^denied/$', 'archlinux.public.views.denied'),
66 (r
'^login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}),
67 (r
'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'registration/login.html'}),
68 (r
'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
69 (r
'^accounts/logout/$', 'django.contrib.auth.views.logout', {'template_name': 'registration/logout.html'}),
70 (r
'^admin/', include('django.contrib.admin.urls')),