Implement automatic tweeting of news
authorMagnus Hagander <magnus@hagander.net>
Sat, 9 Dec 2017 15:44:54 +0000 (16:44 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 9 Dec 2017 15:46:38 +0000 (16:46 +0100)
commit06a48b477c5710bde30a913dc3ae14a549377b0e
tree03f808c9ab9f3a16f9ec4d19c116918a9e4251db
parent9da965b04e914f27ab14b9b2f6b55cd6fe1a8072
Implement automatic tweeting of news

Once a twitter account has been registered (using the twitter_register
management command), the twitter_post command wills start posting all
new news to twitter, once they are approved. It will only post news from
the past 7 days to avoid accidentally flooding with old news.
pgweb/news/forms.py
pgweb/news/management/__init__.py [new file with mode: 0644]
pgweb/news/management/commands/__init__.py [new file with mode: 0644]
pgweb/news/management/commands/twitter_post.py [new file with mode: 0644]
pgweb/news/management/commands/twitter_register.py [new file with mode: 0644]
pgweb/news/migrations/0002_news_tweet.py [new file with mode: 0644]
pgweb/news/models.py