7f7e5be1c6
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
15 lines
341 B
Python
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)
|