Browse Source

djangoprojekt

master
parent
commit
1d5ddae4ca
2 changed files with 4 additions and 2 deletions
  1. 1
    0
      news1/news1/settings.py
  2. 3
    2
      news1/posts/views.py

+ 1
- 0
news1/news1/settings.py View File

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

MIDDLEWARE = [

+ 3
- 2
news1/posts/views.py 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')

Loading…
Cancel
Save