Traceback (most recent call last):


 "app.py", line 1, in <module>

from model import User, Notepad


 "/Users/rahul/projects/personal/Online-Notes/model.py", line 33, in <module>

db = connect(os.environ.get('DATABASE_URL' or 'sqlite:///notes.db'))


 "/Users/rahul/.virtualenvs/Online-Notes/lib/python2.7/site-packages/playhouse/db_url.py", line 84, in connect

parsed = urlparse(url)


 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urlparse.py", line 143, in urlparse

tuple = urlsplit(url, scheme, allow_fragments)


 "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urlparse.py", line 182, in urlsplit

i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'

Traceback (most recent call last):


 "/Applications/anaconda3/envs/ov-dbt/lib/python3.6/site-packages/dbt/adapters/postgres/connections.py", line 46, in exception_handler

yield


 "/Applications/anaconda3/envs/ov-dbt/lib/python3.6/site-packages/dbt/adapters/sql/connections.py", line 77, in add_query

cursor.execute(sql, bindings)
psycopg2.errors.SyntaxError: syntax error at or near "{"
