# src\init_app

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow

# instantiate flask app
app = Flask(__name__)

# Postgresql database url
database_url = 'postgresql://<--Username-->:<--Password-->@<--Host-->/<--Database name-->'

# set configs of the app instance
app.config['SQLALCHEMY_ECHO'] = False
app.config['SQLALCHEMY_DATABASE_URI'] = database_url
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

# instatiate database object
db = SQLAlchemy(app)

# instatiate marshmallow object
ma = Marshmallow(app)


# src\init_app

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow

# instantiate flask app
app = Flask(__name__)

# Postgresql database url
database_url = 'postgresql://<--Username-->:<--Password-->@<--Host-->/<--Database name-->'

# set configs of the app instance
app.config['SQLALCHEMY_ECHO'] = False
app.config['SQLALCHEMY_DATABASE_URI'] = database_url
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

# instatiate database object
db = SQLAlchemy(app)

# instatiate marshmallow object
ma = Marshmallow(app)


# src\init_app # instantiate flask app # Postgresql database url # set configs of the app instance # instatiate database object # instatiate marshmallow object