Heroku Staging Setup (#250)

Heroku Staging Setup

Includes data generation
This commit is contained in:
davidtaylorhq
2016-07-13 23:19:31 +01:00
committed by Tom Price
parent c5d3e7c0f2
commit fc6db5bff2
7 changed files with 296 additions and 8 deletions

View File

@@ -75,5 +75,22 @@ python manage.py runserver
```
Please refer to Django documentation for a full list of options available here.
### Sample Data ###
Sample data is available to aid local development and user acceptance testing. To load this data into your local database, first ensure the database is empty:
```
python manage.py flush
```
Then load the sample data using the command:
```
python manage.py generateSampleData
```
4 user accounts are created for convenience:
|Username |Password |
|---------|---------|
|superuser|superuser|
|finance |finance |
|keyholder|keyholder|
|basic |basic |
### Committing, pushing and testing ###
Feel free to commit as you wish, on your own branch. On my branch (master for development) do not commit code that you either know doesn't work or don't know works. If you must commit this code, please make sure you say in the commit message that it isn't working, and if you can why it isn't working. If and only if you absolutely must push, then please don't leave it as the HEAD for too long, it's not much to ask but when you are done just make sure you haven't broken the HEAD for the next person.