Simple twitter test command

This commit is contained in:
Oly 2018-05-14 08:54:52 +01:00
parent 53bb9ef699
commit 26df8e0294
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
from django.core.management.base import BaseCommand
from django.core.management import call_command
from mhackspace.core.tasks import twitter_message
class Command(BaseCommand):
help = 'Build test data for development environment'
def handle(self, *args, **options):
twitter_message('Test twitter message')
print("Sent Message via twitter")