Skip to content

Commit 11320a2

Browse files
committed
fix README
1 parent d02d0d7 commit 11320a2

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py migrate eg
349349
```
350350
And then repopulate the db:
351351
```bash
352-
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py egsim_init
352+
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py egsim-init
353353
```
354354

355355
Notes:
@@ -377,7 +377,7 @@ To perform a complete db reset:
377377
are others, delete all of them)
378378
- Execute:
379379
```bash
380-
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py makemigrations && python manage.py migrate && python manage.py egsim_init
380+
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py makemigrations && python manage.py migrate && python manage.py egsim-init
381381
```
382382
- `git add` the newly created migration file (in dev mode it's
383383
`egsim/api/migrations/0001_initial.py`)
@@ -389,7 +389,7 @@ Notes:
389389
- `makemigrations` creates the necessary migration file(s) from Python
390390
code and existing migration file(s)
391391
- `migrate` re-create the DB via the generated migration file(s)
392-
- `egsim_init` repopulates the db with eGSIM data
392+
- `egsim-init` repopulates the db with eGSIM data
393393

394394

395395
## Re-populating the DB
@@ -403,7 +403,7 @@ fixed. The operations are similar but simpler than a complete Db Rest:
403403
- `egsim/db.sqlite3`
404404
- Execute:
405405
```bash
406-
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py migrate && python manage.py egsim_init
406+
export DJANGO_SETTINGS_MODULE="egsim.settings_debug";python manage.py migrate && python manage.py egsim-init
407407
```
408408
- [**Optional**] most likely (not tested, please check) you need to re-add
409409
the Django admin superuser(s) as explained in the [admin panel](#admin-panel)
@@ -440,7 +440,7 @@ See `egsim/api/management/commands/README.md`.
440440

441441
The next two sections will describe how to store
442442
new data (regionalizations and flatfiles) that will be
443-
made available in eGSIM with the `egsim_init` command
443+
made available in eGSIM with the `egsim-init` command
444444
(see [Complete DB reset](#Complete-DB-reset) for details)
445445

446446
<!--
@@ -469,7 +469,7 @@ made available in eGSIM with the `egsim_init` command
469469
file name that will be used in the API (if missing, defaults to the file
470470
name without extension)
471471
472-
- Repopulate all eGSIM tables (command `egsim_init`)
472+
- Repopulate all eGSIM tables (command `egsim-init`)
473473
474474
Implemented flatfiles sources (click on the items below to expand)
475475
@@ -507,6 +507,6 @@ Implemented flatfiles sources (click on the items below to expand)
507507
file name that will be used in the API (if missing, defaults to the file
508508
name without extension)
509509
510-
- Repopulate all eGSIM tables (command `egsim_init`)
510+
- Repopulate all eGSIM tables (command `egsim-init`)
511511
512512
-->

deploy.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ <h3>Update egsim DB data or media files</h3>
326326
# create the db and populate it with Django stuff (this is necessary only when changing the DB schema, but for safety):
327327
(cd $EGSIM_CWD; export PYTHONPATH=$EGSIM_CONFIG_DIR DJANGO_SETTINGS_MODULE=settings; python manage.py migrate)
328328
# populate the DB with egsim stuff
329-
(cd $EGSIM_CWD; export PYTHONPATH=$EGSIM_CONFIG_DIR DJANGO_SETTINGS_MODULE=settings; python manage.py egsim_init)
329+
(cd $EGSIM_CWD; export PYTHONPATH=$EGSIM_CONFIG_DIR DJANGO_SETTINGS_MODULE=settings; python manage.py egsim-init)
330330
# re-become root (password the usual one with punctuation marks):
331331
# (without this, the following commands will require you to type the password)
332332
su
@@ -619,8 +619,7 @@ <h2>Set up the project</h2>
619619

620620
<p>Initialize our database (OpenQuake GSIMs IMTs and TRTs)</p>
621621
<pre><code class="language-bash">
622-
(cd $EGSIM_CWD; export PYTHONPATH=$EGSIM_CONFIG_DIR DJANGO_SETTINGS_MODULE=settings; python manage.py egsim_init)
623-
<!--export PYTHONPATH=$EGSIM_CONFIG_DIR; export DJANGO_SETTINGS_MODULE=settings;python manage.py egsim_init-->
622+
(cd $EGSIM_CWD; export PYTHONPATH=$EGSIM_CONFIG_DIR DJANGO_SETTINGS_MODULE=settings; python manage.py egsim-init)
624623
</code></pre>
625624

626625

0 commit comments

Comments
 (0)