import os
basedir = os.path.abspath(os.path.dirname(__file__))
if os.environ.get('DATABASE_URL') is None:
    local_db_uri = 'postgresql://postgres:password@localhost/whiskyton'
    SQLALCHEMY_DATABASE_URI = local_db_uri
    GOOGLE_ANALYTICS = False
else:
    SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
    GOOGLE_ANALYTICS = True
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
MAIN_TITLE = 'Whiskyton'
HEADLINE = 'Find whiskies that you like!'

@@ -123,59 +123,53 @@
  = '
-postgresql://postgres:password@localhost/whiskyton'
+sqlite:///' + os.path.join(basedir, 'app.db')
 %0A   

Use SQLite locally