Document the bootstrap-devsite command

This commit is contained in:
Benjamin Bach 2017-08-28 22:29:38 +02:00
parent bdf38b7407
commit 2b4f8ed3f9
1 changed files with 21 additions and 13 deletions

View File

@ -61,6 +61,27 @@ Is this for local development? Bootstrap the database with dummy data and users:
(venv) $ src/manage.py bootstrap-devsite
```
### Deploy camps+program test data
Run this command to create a bunch of nice test data:
```
(venv) $ src/manage.py bootstrap-devsite
```
### Done
Is this for local development? Start the Django devserver:
```
(venv) $ src/manage.py runserver
```
Otherwise start uwsgi or similar to serve the application.
Enjoy!
## Notes
### Add a camp
Add a new camp by running:
@ -81,19 +102,6 @@ You can also specify details like:
* `{camp-slug}-logo-large.png`
* `{camp-slug}-logo-small.png`
### Done
Is this for local development? Start the Django devserver:
```
(venv) $ src/manage.py runserver
```
Otherwise start uwsgi or similar to serve the application.
Enjoy!
## Notes
### multicamp prod migration notes
* when villages.0008 migration fails go add camp_id to all existing villages