21 lines
417 B
Python
21 lines
417 B
Python
"""
|
|
Imports all required blueprints and initalises the app.
|
|
Runs in debug mode if ran directly.
|
|
"""
|
|
|
|
import dotenv
|
|
import flask
|
|
|
|
from blueprints.projects import projectsBP
|
|
from blueprints.static import staticBP
|
|
|
|
dotenv.load_dotenv()
|
|
|
|
app = flask.Flask(__name__)
|
|
app.register_blueprint(projectsBP)
|
|
app.register_blueprint(staticBP)
|
|
|
|
if __name__ == '__main__':
|
|
print('Running in debug mode')
|
|
app.run(debug=True)
|