added privacy

This commit is contained in:
DerTyp187
2021-11-13 19:48:03 +01:00
parent 50a2699798
commit a1402aa598
8 changed files with 161 additions and 5 deletions

View File

@@ -2,7 +2,9 @@ from django.shortcuts import render, redirect
from .models import Category, Topic
def index(req):
return render(req, "main/index.html")
categorys_obj = Category.objects.all()
return render(req, "main/index.html", {'categorys': categorys_obj})
def topic(req, category, topic):
@@ -42,3 +44,14 @@ def category(req, category):
return redirect("main-index")
def about(req):
return render(req, "main/about.html")
def privacy(req):
return render(req, "main/privacy.html")