This commit is contained in:
DerTyp187
2021-11-23 14:43:42 +01:00
parent 151e92eb94
commit ae45b94c67
5 changed files with 77 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ from .models import Category, Topic, Rating
from analytics.models import View
def index(req):
view = View(ip=get_ip(req), home=True)
view = View(ip=get_ip(req), custom_title="index")
view.save()
categorys_obj = Category.objects.all()
return render(req, "main/index.html", {'categorys': categorys_obj})