def rooms(request, template='rooms.html'):
 context = {'rooms': ChatRoom.objects.all()}
 return render(request, template, context)

def rooms ( request , template = 'rooms.html' ) : context = { 'rooms' : ChatRoom . objects . all ( ) } return render ( request , template , context )
homepage - lists all rooms .