'django.contrib.sessions', | 'django.contrib.sessions', | ||||
'django.contrib.messages', | 'django.contrib.messages', | ||||
'django.contrib.staticfiles', | 'django.contrib.staticfiles', | ||||
'posts', | |||||
] | ] | ||||
MIDDLEWARE = [ | MIDDLEWARE = [ |
from django.shortcuts import HttpResponse | |||||
from django.shortcuts import render | |||||
# Create your views here. | # Create your views here. | ||||
def index(request): | def index(request): | ||||
return HttpResponse("Index-Seite der posts-Applikation") | |||||
return render(request, 'posts/index.html') |