begin form creation

Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-02 17:42:04 +02:00
commit 7f7e5be1c6
3 changed files with 32 additions and 2 deletions

View file

@ -1,6 +1,15 @@
from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import render
from .models import Message
def send_message(request):
pass
def index(request):
return HttpResponse("Hello, world. You're at the polls index.")
message_list = Message.objects.order_by('-received_date')[:5]
context = { 'message_list': message_list, }
return render(request, 'digital_glarus/index.html', context)