def room(request, slug, template='room.html'):
 context = {'room': get_object_or_404(ChatRoom, slug=slug)}
 return render(request, template, context)

def room ( request , slug , template = 'room.html' ) : context = { 'room' : get_object_or_404 ( ChatRoom , slug = slug ) } return render ( request , template , context )
restful crud controller .