from flask import Flask
import os
import urllib.parse
from settings import *
from peewee import PostgresqlDatabase
APP_ROOT = os.path.dirname(os.path.realpath(__file__))
urllib.parse.uses_netloc.append('postgres')
DATABASE = urllib.parse.urlparse(DATABASE_URL)
app = Flask(__name__)
app.config.from_object(__name__)
db = PostgresqlDatabase(DATABASE.path[1:], user=DATABASE.username, host=
    DATABASE.hostname, port=DATABASE.port, password=DATABASE.password)

43428cb89a0af56708b5935e156f623d4d95f40d
<mask token>

<mask token>
urllib.parse.uses_netloc.append('postgres')
<mask token>
app.config.from_object(__name__)
<mask token>

<mask token>
APP_ROOT = os.path.dirname(os.path.realpath(__file__))
urllib.parse.uses_netloc.append('postgres')
DATABASE = urllib.parse.urlparse(DATABASE_URL)
app = Flask(__name__)
app.config.from_object(__name__)
db = PostgresqlDatabase(DATABASE.path[1:], user=DATABASE.username, host=
    DATABASE.hostname, port=DATABASE.port, password=DATABASE.password)

from flask import Flask
import os
import urllib.parse
from settings import *
from peewee import PostgresqlDatabase
APP_ROOT = os.path.dirname(os.path.realpath(__file__))
urllib.parse.uses_netloc.append('postgres')
DATABASE = urllib.parse.urlparse(DATABASE_URL)
app = Flask(__name__)
app.config.from_object(__name__)
db = PostgresqlDatabase(DATABASE.path[1:], user=DATABASE.username, host=
    DATABASE.hostname, port=DATABASE.port, password=DATABASE.password)
