view potd/management/commands/pick_potd.py @ 858:a4d685cdecdd

Update requirements files for Google API v3 Python client install. Installed for new Calendar v3 API, issue #80.
author Brian Neal <bgneal@gmail.com>
date Sat, 22 Nov 2014 13:33:21 -0600
parents ee87ea74d46b
children
line wrap: on
line source
"""
pick_potd is a custom manage.py command for the POTD application.
Calling it will pick a new POTD.

"""
from django.core.management.base import NoArgsCommand

from potd.tools import pick_potd


class Command(NoArgsCommand):
    help = "Chooses the next POTD."

    def handle_noargs(self, **options):
        pick_potd()