Solução:Quando mudei views.py para isso, funcionou:
@login_required
def room(request, room_name):
print('~~~DEBUG~~~')
return render(request, 'chat/room.html', {
'room_name': room_name
@login_required
def room(request, room_name):
print('~~~DEBUG~~~')
return render(request, 'chat/room.html', {
'room_name': room_name