You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

views.py 367B

12345678910111213
  1. from django.shortcuts import render
  2. from django.http import HttpResponse
  3. from datetime import datetime
  4. # Create your views here.
  5. def index(request):
  6. return HttpResponse("Hello, world. You're at the posts index.")
  7. def welcome_seite(request):
  8. return render(request, 'posts/index.html')
  9. def about_seite(request):
  10. return render(request, 'posts/about.html')