~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlwebchat/views.py

  • Committer: Holger Rapp
  • Date: 2010-09-26 13:30:30 UTC
  • Revision ID: sirver@gmx.de-20100926133030-ceirjf83vde91tyt
Added a simple events model to display dates on the homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Create your views here.
2
 
from django.shortcuts import render
3
 
 
 
2
from django.shortcuts import render_to_response
 
3
from django.template import RequestContext
4
4
 
5
5
def webchat(request):
6
 
    return render(request, 'wlwebchat/index.html')
 
6
    return render_to_response('wlwebchat/index.html', context_instance=RequestContext(request))
 
7