- The configuration file will be used only if
app.py
is executed bynot bypython3 app.py
However the latter can be used to run the application if the configuration file is not needed.flask run
- Since
instance_relative_config
is set to True, the configuration file(config.py
) is expected to be in the instance folder. - If instance folder does not exist, it will be created during execution. But no configuration file is created in the instance folder.
- The
instance/config.py
will only be used if it exists, otherwise, the default configuration will be used. - Secret keys and other sensitive information should be stored in the configuration file & should not be committed to the repository.
- Bootstrap is used for the UI design in the form of compiled minified version of CSS and JS. Refer for more info 👉 Bootstrap
- Bootstrap Icons is used as Icon Fonts. Refer for more info 👉 Bootstrap Icons
- When experimenting with CSS, it is important to disable CSS caching in the browser.
- The app will create DB if .db file does not exist in
src/instance
folder and add admin user. - If you want to manually create the DB, navigate to instance folder and follow the steps below:
flask shell
- Run the following commands in flask shell:
from app.models import db db.drop_all() db.create_all()
HomePoint_Demo.mp4
Link for video -> HomePoint Demonstration
- Flask Documentation
- Flask Configuration Handling
- Flask Error Handling
- Flask Message Flashing
- Template Inheritance
- Flask SQL-Alchemy Documentation
- SQL Alchemy Documentation
- SQL-Alchemy handling One-to-Many Relationship
- Flask WTForms Documentation
- A guide to bringing JavaScript's Power to your Flask app
- Javascript Fetch API
- Javascript in Flask