2011-09-04 04:21:51 +00:00
|
|
|
from django.template import RequestContext
|
2011-08-31 03:46:55 +00:00
|
|
|
from django.shortcuts import render_to_response
|
|
|
|
|
2011-09-12 03:44:21 +00:00
|
|
|
from regluit.core import models
|
|
|
|
|
2011-08-31 03:46:55 +00:00
|
|
|
def home(request):
|
2011-09-12 03:44:21 +00:00
|
|
|
campaigns = models.Campaign.objects.all()
|
2011-09-04 04:21:51 +00:00
|
|
|
return render_to_response('home.html',
|
2011-09-12 03:44:21 +00:00
|
|
|
{"campaigns": campaigns},
|
|
|
|
context_instance=RequestContext(request)
|
|
|
|
)
|
|
|
|
|
|
|
|
def panel(request):
|
|
|
|
return render_to_response('book-panel.html',
|
2011-09-04 04:21:51 +00:00
|
|
|
{},
|
|
|
|
context_instance=RequestContext(request)
|
|
|
|
)
|