from flask import Flask
from flask_sqlalchemy import SQLAlchemy

from os import getenv


app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL',
                                               default='postgresql://postgres@localhost:5432/loadstone')
db = SQLAlchemy(app)

import api.views

from flask import Flask
from flask_sqlalchemy import SQLAlchemy

from os import getenv


app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://')
db = SQLAlchemy(app)

import api.views

Set default to sqlite memory
Set default to sqlite memory

  from flask import Flask
  from flask_sqlalchemy import SQLAlchemy
  
  from os import getenv
  
  
  app = Flask(__name__)
- app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL',
+ app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://')
-                                                default='postgresql://postgres@localhost:5432/loadstone')
  db = SQLAlchemy(app)
  
  import api.views
  
Set default to sqlite memory
## Code Before:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy

from os import getenv


app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL',
                                               default='postgresql://postgres@localhost:5432/loadstone')
db = SQLAlchemy(app)

import api.views

## Instruction:
Set default to sqlite memory
## Code After:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy

from os import getenv


app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = getenv('DATABASE_URL', default='sqlite://')
db = SQLAlchemy(app)

import api.views
