2011-04-13 08:50:24 +02:00
|
|
|
from django.conf.urls.defaults import *
|
2011-08-25 15:39:54 +02:00
|
|
|
from feeds import *
|
|
|
|
|
|
|
|
package_patterns = patterns('euscan.views',
|
|
|
|
url(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/feed/$', PackageFeed(), name='package_feed'),
|
|
|
|
(r'^(?P<category>[\w+][\w+.-]*)/(?P<package>[\w+][\w+.-]*)/$', 'package'),
|
|
|
|
)
|
|
|
|
|
|
|
|
categories_patterns = patterns('euscan.views',
|
2011-08-26 13:27:46 +02:00
|
|
|
(r'^(?P<category>[\w+][\w+.-]*)/view/$', 'category'),
|
|
|
|
url(r'^(?P<category>[\w+][\w+.-]*)/feed/$', CategoryFeed(), name='category_feed'),
|
|
|
|
(r'^(?P<category>[\w+][\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_category'),
|
|
|
|
(r'^$', 'categories'),
|
2011-08-25 15:39:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
herds_patterns = patterns('euscan.views',
|
2011-08-26 13:27:46 +02:00
|
|
|
(r'^(?P<herd>[\@\{\}\w+.-]*)/view/$', 'herd'),
|
|
|
|
url(r'^(?P<herd>[\@\{\}\w+.-]*)/feed/$', HerdFeed(), name='herd_feed'),
|
|
|
|
(r'^(?P<herd>[\@\{\}\w+.-]*)/charts/(?P<chart>[\w\-]+).png$', 'chart_herd'),
|
|
|
|
(r'^$', 'herds'),
|
2011-08-25 15:39:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
maintainers_patterns = patterns('euscan.views',
|
2011-08-26 13:27:46 +02:00
|
|
|
(r'^(?P<maintainer_id>\d+)/view/$', 'maintainer'),
|
|
|
|
url(r'^(?P<maintainer_id>\d+)/feed/$', MaintainerFeed(), name='maintainer_feed'),
|
|
|
|
(r'^(?P<maintainer_id>\d+)/charts/(?P<chart>[\w\-]+).png$', 'chart_maintainer'),
|
|
|
|
(r'^$', 'maintainers'),
|
2011-08-25 15:39:54 +02:00
|
|
|
)
|
2011-04-13 08:50:24 +02:00
|
|
|
|
|
|
|
urlpatterns = patterns('euscan.views',
|
|
|
|
(r'^$', 'index'),
|
2011-08-25 15:39:54 +02:00
|
|
|
url(r'^feed/$', GlobalFeed(), name='global_feed'),
|
2011-04-25 22:27:32 +02:00
|
|
|
(r'^about/$', 'about'),
|
|
|
|
(r'^statistics/$', 'statistics'),
|
|
|
|
(r'^statistics/charts/(?P<chart>[\w\-]+).png$', 'chart'),
|
2011-04-15 19:28:37 +02:00
|
|
|
(r'^world/$', 'world'),
|
|
|
|
(r'^world/scan/$', 'world_scan'),
|
2011-08-25 15:39:54 +02:00
|
|
|
(r'^categories/', include(categories_patterns)),
|
|
|
|
(r'^herds/', include(herds_patterns)),
|
|
|
|
(r'^maintainers/', include(maintainers_patterns)),
|
|
|
|
(r'^package/', include(package_patterns)),
|
2011-04-13 08:50:24 +02:00
|
|
|
)
|