Permalink
Browse files

Adding the packages app to handle displaying and fetching packages fr…

…om PyPI
  • Loading branch information...
1 parent f4cb70a commit 19d5a7d503f23e2ed8c5d1a6dbcc53d8cd5b0eab @carlio committed May 26, 2012
Showing with 10 additions and 1 deletion.
  1. +1 −1 pihub/common/urls.py
  2. 0 pihub/packages/__init__.py
  3. +5 −0 pihub/packages/urls.py
  4. +3 −0 pihub/packages/views.py
  5. +1 −0 pihub/urls.py
View
@@ -1,6 +1,6 @@
from django.conf.urls.defaults import patterns, url
from django.views.generic.base import TemplateView
-urlpatterns = patterns('boobdb.common.views',
+urlpatterns = patterns('pihub.common.views',
url(r'^$', TemplateView.as_view(template_name='index.html'), name='site_index'),
)
No changes.
View
@@ -0,0 +1,5 @@
+from django.conf.urls.defaults import patterns, url
+
+urlpatterns = patterns('pihub.packages.views',
+ url(r'^(?P<package_name>[a-zA-Z0-9-]+)$', 'version_list', name='version_list'),
+)
View
@@ -0,0 +1,3 @@
+
+def version_list(request, package_name):
+ pass
View
@@ -2,6 +2,7 @@
urlpatterns = patterns('',
+ url(r'', include('pihub.packages.urls', namespace='packages')),
# catchall for anything unmatched goes into the common app
url(r'', include('pihub.common.urls')),
)

0 comments on commit 19d5a7d

Please sign in to comment.