djangoprojekt
This commit is contained in:
parent
aff5d814d0
commit
1d5ddae4ca
@ -37,6 +37,7 @@ INSTALLED_APPS = [
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'posts',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user