Mercurial > public > sg101
view smiley/views.py @ 1183:d6faffbb6025
Add 2020 MP3 Comp links
Also removed twitter links.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 15 Feb 2021 12:39:26 -0600 |
parents | e932f2ecd4a7 |
children |
line wrap: on
line source
""" Views for the Smiley application. """ from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_GET from smiley.models import Smiley @login_required @require_GET def farm(request, extra=False): return render(request, 'smiley/smiley_farm.html', { 'smilies': Smiley.objects.get_smilies(extra), })