comparison irc/views.py @ 656:79e785f0bdad

For issue #38, change IRC bot to use Redis instead of MySQL. Also deleting the bot from this repo as it now has its own repo.
author Brian Neal <bgneal@gmail.com>
date Sat, 11 May 2013 15:22:45 -0500
parents ee87ea74d46b
children 19d34242473e
comparison
equal deleted inserted replaced
655:d9d6b4b8bab7 656:79e785f0bdad
1 """views for the IRC application""" 1 """Views for the IRC application"""
2 2
3 from django.shortcuts import render_to_response 3 from django.shortcuts import render
4 from django.template import RequestContext
5 4
6 from irc.models import IrcChannel 5 from irc.channel import get_users
6
7 7
8 def view(request): 8 def view(request):
9 nicks = IrcChannel.objects.all() 9 nicks = get_users()
10 return render_to_response('irc/view.html', 10 return render(request, 'irc/view.html', {'nicks': nicks})
11 {'nicks': nicks},
12 context_instance = RequestContext(request))