We should write a script that completely automates the Django setup by: - [ ] checking for virtualenv and installing if need be - [ ] create a virtualenv in `~/.env-pagelab || <path>` - [ ] install requirements.txt - [ ] prompt user for DJANGO_DB_NAME, DJANGO_DB_PASSWORD, etc - [ ] write config in `settings_local.py` - [ ] provide a start script that does `source ~/.env-pagelab/bin/activate` first - [ ] figure out how best to talk to `postgresql` - [ ] runs `./manage.py migrate` - [ ] runs `./manage.py loaddata reports/fixtures/$NEW_FIXTURE_WITH_24_URLS_OR_SOMETHING.json` - [ ] runs `./manage.py collectstatic` - [ ] generate `gunicorn` start script for `supervisorctl` - [ ] generate 'httpd' config - [ ] create a docker image that knows how to consume all of these artifacts
We should write a script that completely automates the Django setup by:
~/.env-pagelab || <path>settings_local.pysource ~/.env-pagelab/bin/activatefirstpostgresql./manage.py migrate./manage.py loaddata reports/fixtures/$NEW_FIXTURE_WITH_24_URLS_OR_SOMETHING.json./manage.py collectstaticgunicornstart script forsupervisorctl