dynamicweb/digital_glarus/views.py
Nico Schottelius 7f7e5be1c6 begin form creation
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
2015-05-02 17:42:04 +02:00

15 lines
341 B
Python

from django.shortcuts import render
from django.shortcuts import render
from .models import Message
def send_message(request):
pass
def index(request):
message_list = Message.objects.order_by('-received_date')[:5]
context = { 'message_list': message_list, }
return render(request, 'digital_glarus/index.html', context)