diff --git a/website/templates/website/welcome.html b/website/templates/website/welcome.html index ae34ae8..a219382 100644 --- a/website/templates/website/welcome.html +++ b/website/templates/website/welcome.html @@ -12,5 +12,8 @@

Welcome Pyl!

{{ secret_message }}

+

+ You have {{ meetings_count }} meetings. +

\ No newline at end of file diff --git a/website/views.py b/website/views.py index 724fcfe..c9abe9c 100644 --- a/website/views.py +++ b/website/views.py @@ -2,13 +2,15 @@ from datetime import datetime from django.shortcuts import render from django.http import HttpResponse +from meetings.models import Meeting # Create your views here. def welcome(request): return render(request, 'website/welcome.html', { 'welcome_message': 'You are super!', - 'secret_message' : 'You are loved!' + 'secret_message' : 'You are loved!', + 'meetings_count': Meeting.objects.count() })