Change haldis.py to app.py in README
This commit is contained in:
parent
5b2f6de323
commit
a44f02e2c7
1 changed files with 11 additions and 11 deletions
10
README.md
10
README.md
|
@ -19,11 +19,11 @@ There is a special script to get started with the project. Just run it in the ro
|
||||||
|
|
||||||
This will create a virtual environment, install the necessary dependencies and will give you the option to seed the database.
|
This will create a virtual environment, install the necessary dependencies and will give you the option to seed the database.
|
||||||
|
|
||||||
If you are using a database other then sqlite you will first need to configure the correct uri to the database in the generated 'config.py' file.
|
If you are using a database other then sqlite you will first need to configure the correct URI to the database in the generated 'config.py' file.
|
||||||
Afterwards upgrade the database to the latest version using
|
Afterwards upgrade the database to the latest version using
|
||||||
|
|
||||||
cd app
|
cd app
|
||||||
python haldis.py db upgrade
|
python3 app.py db upgrade
|
||||||
|
|
||||||
You can now still seed the database by running
|
You can now still seed the database by running
|
||||||
|
|
||||||
|
@ -38,15 +38,15 @@ Activate the virtual environment using
|
||||||
|
|
||||||
Finally run the webserver with
|
Finally run the webserver with
|
||||||
|
|
||||||
python app/haldis.py runserver
|
python3 app/app.py runserver
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Changing the database
|
### Changing the database
|
||||||
|
|
||||||
1. Update models located in 'app/models.py'
|
1. Update models located in 'app/models.py'
|
||||||
2. Run `python app/haldis.py db migrate` to create a new migration.
|
2. Run `python app/app.py db migrate` to create a new migration.
|
||||||
3. Apply the changes to the database using `python app/haldis.py db upgrade`
|
3. Apply the changes to the database using `python app/app.py db upgrade`
|
||||||
|
|
||||||
### Adding dependencies/libraries
|
### Adding dependencies/libraries
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue