change .gitignore
This commit is contained in:
parent
25325b4fd9
commit
ed5c7bd379
5 changed files with 149 additions and 6 deletions
|
@ -1,7 +1,11 @@
|
|||
from django.shortcuts import render
|
||||
from django.utils.translation import gettext as _
|
||||
from django.views import View
|
||||
from django.views.generic import ListView
|
||||
|
||||
from .models import Message
|
||||
|
||||
|
||||
class ChatView(View):
|
||||
template_name = 'chat.html'
|
||||
class ChatView(ListView):
|
||||
model = Message
|
||||
title = _('Chat Box')
|
||||
template_name = 'chat/chat.html'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue