Buzzfeed style predictive quizzes
- Install Python 3
sudo apt-get install python3 python3-pip- Set up a virtual environment, I use
virtualenv
sudo python3 -m pip install virtualenv
mkdir ~/.envs
python3 -m virtualenv ~/.envs/psychic- Install the dependencies in the virtualenv using pip
source ~/.envs/psychic/bin/activate
pip install -r requirements.txt- Run the dev server
cd psychic
./manage.py runserver- Open
localhost:8000in a web browser
settings.py- Set
DEBUGto False - Set
ALLOWED_HOSTS
- Set
~/.bashrc- Add
export SECRET_KEY="(insert secret key here)"
- Add