* Add some helpful text above the add influence form.
[matthijs/projects/xerxes.git] / events / views / event.py
1 #from django.template import Context, loader
2 #from django.http import HttpResponse
3 from ee.events.models import Event
4 from django.shortcuts import render_to_response
5 from django.http import Http404
6
7
8
9 def detail(request, event_id):
10         try:
11                 event = Event.objects.get(id=event_id)
12                 #t = loader.get_template('events/event/detail.html')
13                 #c = Context({
14                 #       'event' : event,
15                 #})
16                 #return HttpResponse(t.render(c))
17                 return render_to_response('events/event/detail.html', {'event' : event})
18         except Event.DoesNotExist:
19                 raise Http404
20
21 def regs(request, event_id):
22         pass
23         #return HttpResponse('')