diff apps/bundle/views.py @ 4:069cabdaf8b2

Define stub template and admin site
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Fri, 25 Jun 2010 14:04:30 -0500
parents 3cef0d445036
children c83460992637
line wrap: on
line diff
--- a/apps/bundle/views.py	Fri Jun 25 11:33:21 2010 -0500
+++ b/apps/bundle/views.py	Fri Jun 25 14:04:30 2010 -0500
@@ -1,1 +1,11 @@
-# Create your views here.
+from django.template import Context, loader
+from django.http import HttpResponse
+from agora.apps.bundle.models import *
+
+def detail(request, user, bundle):
+    t = loader.get_template('bundle/index.djhtml')
+    c = Context({
+        'user': user,
+        'bundle' : bundle,
+    })
+    return HttpResponse(t.render(c))