summaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-13 14:56:43 -0600
committerDan McGee <dan@archlinux.org>2010-12-13 14:56:43 -0600
commit6e3dc1be01ac0e5d0fb08142abfc1417eb924871 (patch)
tree4b320617813a94430c0f1e6ee195b95a86119cce /urls.py
parent080278adea3be10c2b6b10e41f92e722d0c2c8cf (diff)
Move more URLs out of root urlconf
Things are a bit cleaner now. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py53
1 files changed, 4 insertions, 49 deletions
diff --git a/urls.py b/urls.py
index 1e6f3204..e55c271a 100644
--- a/urls.py
+++ b/urls.py
@@ -4,7 +4,6 @@ from django.contrib import admin
from django.views.generic.simple import direct_to_template
-from main.models import Todolist
from feeds import PackageFeed, NewsFeed
import sitemaps
@@ -18,38 +17,6 @@ sitemaps = {
admin.autodiscover()
urlpatterns = patterns('packages.views',
- (r'^packages/flaghelp/$', 'flaghelp'),
- (r'^packages/signoffs/$', 'signoffs'),
- (r'^packages/signoff_package/(?P<arch>[A-z0-9]+)/(?P<pkgname>[A-z0-9\-+.]+)/$',
- 'signoff_package'),
- (r'^packages/update/$', 'update'),
-
- # Preference is for the packages/ url below, but search is kept
- # because other projects link to it
- (r'^packages/search/$', 'search'),
- (r'^packages/search/(?P<page>\d+)/$', 'search'),
- (r'^packages/$', 'search'),
- (r'^packages/(?P<page>\d+)/$', 'search'),
-
- (r'^packages/differences/$', 'arch_differences'),
-
- (r'^packages/(?P<name>[A-z0-9\-+.]+)/$',
- 'details'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<name>[A-z0-9\-+.]+)/$',
- 'details'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$',
- 'details'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/files/$',
- 'files'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/maintainer/$',
- 'getmaintainer'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/flag/$',
- 'flag'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/unflag/$',
- 'unflag'),
- (r'^packages/(?P<repo>[A-z0-9\-]+)/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/download/$',
- 'download'),
-
(r'^groups/$', 'groups'),
(r'^groups/(?P<arch>[A-z0-9]+)/(?P<name>[A-z0-9\-+.]+)/$',
'group_details'),
@@ -58,14 +25,6 @@ urlpatterns = patterns('packages.views',
)
urlpatterns += patterns('todolists.views',
- (r'^todo/$', 'list'),
- (r'^todo/(\d+)/$', 'view'),
- (r'^todo/add/$', 'add'),
- (r'^todo/edit/(?P<list_id>\d+)/$', 'edit'),
- (r'^todo/flag/(\d+)/(\d+)/$', 'flag'),
- (r'^todo/delete/(?P<object_id>\d+)/$',
- 'delete_todolist'),
-
(r'^todolists/$', 'public_list'),
)
@@ -84,13 +43,6 @@ urlpatterns += patterns('mirrors.views',
{'countries': ['all'], 'protocols': ['http']}),
)
-urlpatterns += patterns('devel.views',
- (r'^devel/$', 'index'),
- (r'^devel/notify/$', 'change_notify'),
- (r'^devel/profile/$', 'change_profile'),
- (r'^devel/newuser/$', 'new_user_form'),
-)
-
# Feeds and sitemaps
urlpatterns += patterns('',
(r'^feeds/$', 'public.views.feeds', {}, 'feeds-list'),
@@ -136,7 +88,10 @@ urlpatterns += patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^jsi18n/$', 'django.views.i18n.null_javascript_catalog'),
- (r'^news/', include('news.urls')),
+ (r'^devel/', include('devel.urls')),
+ (r'^news/', include('news.urls')),
+ (r'^packages/', include('packages.urls')),
+ (r'^todo/', include('todolists.urls')),
)
if settings.DEBUG == True: