lemoncurry/home/views.py

14 lines
338 B
Python
Raw Normal View History

2017-10-22 18:37:24 -04:00
from django.shortcuts import get_object_or_404, render
from users.models import User
from lemoncurry import breadcrumbs
breadcrumbs.add('home:index', 'home')
2017-10-22 18:37:24 -04:00
def index(request):
user = get_object_or_404(User, pk=1)
return render(request, 'home/index.html', {
'user': user,
'meta': user.as_meta(request),
})