Minor cleanup in a readme and a method signature.

This commit is contained in:
Kelketek Rritaa 2014-06-28 16:35:57 -05:00
parent ca3f92acd0
commit a6187ed997
2 changed files with 9 additions and 9 deletions

View file

@ -4,12 +4,11 @@ This contains a simple view for rendering the webclient
page and serve it eventual static content.
"""
from django.shortcuts import render
from django.shortcuts import render_to_response, redirect
from django.template import RequestContext
from django.conf import settings
from src.players.models import PlayerDB
def webclient(request):
"""
Webclient page template loading.
@ -25,5 +24,4 @@ def webclient(request):
# as an example we send the number of connected players to the template
pagevars = {'num_players_connected': nsess}
context_instance = RequestContext(request)
return render_to_response('webclient.html', pagevars, context_instance)
return render(request, 'webclient.html', pagevars)