diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2019-01-20 15:49:27 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2019-01-20 15:49:27 -0500 |
| commit | 20a548ceeee49df2ab3a36b2e9f399fe87bb173f (patch) | |
| tree | 6bb6611d200f32f96ec13d736f76f1e8c73ec71b | |
| parent | 7208b6eb9ae6d94a27cc819fd44bbba66ba06aa3 (diff) | |
| download | dispatch-tracker-django-2.tar.gz dispatch-tracker-django-2.tar.xz | |
Modified the `insert_fake_data` example to include invoices and attachmentsdjango-2
| -rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,6 +26,7 @@ etc it's as simple as: pg_ctl -D pg_data initdb pg_ctl -D pg_data -l pg_log start echo create database $(id -un)\; | psql postgres +echo create database dispatch | psql ``` Your user should be able to connect with just a simple `psql` @@ -51,7 +52,8 @@ sed -i.bak -e"s/USER: postgres$/USER: $(id -un)" config.yml ./manage.py createsuperuser # This will create some fake records if you wish ./manage.py insert_fake_data --companies 10 --users 10 \ - --loads 400 --start-date='-16w' --end-date='+16w' + --loads 400 --start-date='-16w' --end-date='+16w' --attachments=true \ + --invoices=true # Default is 2 weeks for start/end date, no # defaults for any other options # Run a local development server, listens to the world |
