import os

import peewee

APP_DIR = os.path.dirname(__file__)

try:
    import urlparse
    import psycopg2
    urlparse.uses_netloc.append('postgres')
    url = urlparse.urlparse(os.environ["DATABASE_URL"])
    database = peewee.PostgresqlDatabase(database=url.path[1:],
                                         user=url.username,
                                         password=url.password,
                                         host=url.hostname,
                                         port=url.port)
except KeyError:
    database = peewee.MySQLDatabase(os.environ["MYSQL_DATABASE"],
                                    os.environ["MYSQL_HOST"],
                                    user=os.environ["MYSQL_USER"],
                                    passwd=os.environ["MYSQL_PASSWD"])

@@ -548,13 +548,14 @@
 wee.
-MySQL
+Sqlite
 Data
@@ -563,234 +563,17 @@
 ase(
-os.environ%5B%22MYSQL_DATABASE%22%5D,%0A                                    os.environ%5B%22MYSQL_HOST%22%5D,%0A                                    user=os.environ%5B%22MYSQL_USER%22%5D,%0A                                    passwd=os.environ%5B%22MYSQL_PASSWD%22%5D
+'my_app.db'
 )%0A

Change from MySQL to SQLite3