djangoprojekt

This commit is contained in:
Serge Beaujard Pouani Deumassi 2019-11-05 15:45:07 +01:00
parent aff5d814d0
commit 1d5ddae4ca
2 changed files with 4 additions and 2 deletions

View File

@ -37,6 +37,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'posts',
]
MIDDLEWARE = [

View File

@ -1,5 +1,6 @@
from django.shortcuts import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
return HttpResponse("Index-Seite der posts-Applikation")
return render(request, 'posts/index.html')