diff options
author | 2018-08-11 23:36:48 +0200 | |
---|---|---|
committer | 2018-08-11 23:36:48 +0200 | |
commit | 5ce6834004ad0da420c4c0f175c46765e2967252 (patch) | |
tree | db19e7a572b8b1f6865cb274296e4623a787b63a | |
parent | Use `django-environ` and PostgreSQL. (diff) |
Add setup instructions.
-rw-r--r-- | SETUP.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 00000000..93a9d193 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,11 @@ +# Setting up & running up the website locally +*to be put on the wiki* + +- `pipenv sync` +- `psql -c 'CREATE USER pysite;'` +- `psql -c 'CREATE DATABASE pysite OWNER pysite;'` +- `echo 'DEBUG=1' >> .env` +- `echo 'DATABASE_URL=postgres://pysite:@localhost/pysite' >> .env` +- `pipenv shell` +- `python manage.py migrate` +- `python manage.py runserver` |