begin form creation
Signed-off-by: Nico Schottelius <nico@freiheit.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								5d1b26d4f7
							
						
					
				
			
			
				commit
				
					
						7f7e5be1c6
					
				
			
		
					 3 changed files with 32 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue