Change haldis.py to app.py in README

This commit is contained in:
redfast00 2019-09-11 22:39:41 +02:00
parent 5b2f6de323
commit a44f02e2c7
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -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