This project takes random identities and puts them together in funny and thought provoking ways showing us that a coder can be anyone.
Learn more about virtualenv. Create a new virtualenv for your own project, where projectname
is the name of your project:
$ virtualenv --python=python3 projectname
Activate your virtualenv:
$ source projectname/bin/activate
Now, you need the writecode project files in your environment:
$ cd /path/to/your/project
$ git clone git://github.com/bluflowr/theywritecode.git projectname && cd projectname
Included is the requirements.txt file that has all the resources you'll need for this project. To install them, simply type:
$ pip install -r requirements.txt
Rename secret_example.py
to secret.py
Go to http://www.miniwebtool.com/django-secret-key-generator/, create your secret key, copy it. Open secret.py
, find key
line, paste your secret key.
Go to Twitter. Once you've created you app keys and access tokens, enter your Twitter credentials in secret.py
.
First set the database engine (PostgreSQL, MySQL, etc..) in your settings files; plotcreator/settings.py
. Install necessary database drivers. Define your credentials. Then create your database:
$ python manage.py migrate
$ python manage.py makemigrations writecode
$ python manage.py migrate
$ python manage.py runserver
Create a cron job to post updates to twitter.
$ python manage.py tweet
This site is currently live at theywritecode.com There is also a cron job posting pairings to twitter twice a day! @theywritecode