From 912b3634d03b70ed6d4ccdadfe2b9e7cef3a765c Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Wed, 30 Oct 2013 13:40:32 -0400 Subject: [PATCH] updated README, duh. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 57f1837..c813cbf 100644 --- a/README.md +++ b/README.md @@ -42,9 +42,9 @@ The ORDER variable represents the Markov index, which is a measure of associativ ## Debugging -You can also turn off the publication of tweets and skip the random number generation if you want to test the script to debug it. +If you want to test the script or to debug the tweet generation, you can skip the random number generation and not publish the resulting tweets to Twitter. -First, adjust the DEBUG variable in `local_settings.py`. +First, adjust the `DEBUG` variable in `local_settings.py`. ``` DEBUG = True @@ -52,6 +52,9 @@ DEBUG = True After that, commit the change and `git push heroku master`. Then run the command `heroku run worker` on the command line and watch what happens. +If you want to avoid hitting the Twitter API and instead want to use a static text file, you can do that. First, create a text file containing a Python list of quote-wrapped tweets. Then set the `STATIC_TEST` variable to `True`. Finally, specify the name of text file using the `TEST_SOURCE` variable in `local_settings.py` + + ## Credit As I said, this is based almost entirely on [@harrisj's](https://twitter.com/harrisj) [iron_ebooks](https://github.com/harrisj/iron_ebooks/). He created it in Ruby, and I wanted to port it to Python. All the credit goes to him. As a result, all of the blame for clunky implementation in Python fall on me. If you see ways to improve the code, please fork it and send a pull request, or file an issue for me and I'll address it.