summaryrefslogtreecommitdiffstats
path: root/chat/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'chat/views.py')
-rw-r--r--chat/views.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/chat/views.py b/chat/views.py
new file mode 100644
index 0000000..512837e
--- /dev/null
+++ b/chat/views.py
@@ -0,0 +1,14 @@
1from django.views.generic import TemplateView
2
3
4class Chat(TemplateView):
5 template_name = 'chat.html'
6
7class Room(TemplateView):
8 template_name = 'room.html'
9
10 def get_context_data(self, **kwargs):
11 return {
12 **super().get_context_data(**kwargs),
13 'room_name': kwargs.get('room'),
14 }