Update database.py
Browse files- database.py +2 -2
database.py
CHANGED
@@ -6,8 +6,8 @@ import os
|
|
6 |
db_url = os.environ.get("DATABASE_URL", "")
|
7 |
|
8 |
#database = databases.Database(settings.db_url)
|
9 |
-
|
10 |
-
SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
|
11 |
|
12 |
engine = create_engine(
|
13 |
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|
|
|
6 |
db_url = os.environ.get("DATABASE_URL", "")
|
7 |
|
8 |
#database = databases.Database(settings.db_url)
|
9 |
+
SQLALCHEMY_DATABASE_URL = "ibmabdulsalam.mysql.pythonanywhere-services.com" #"sqlite:///./sql_app.db"
|
10 |
+
#SQLALCHEMY_DATABASE_URL = db_url #"postgresql://user:password@postgresserver/db"
|
11 |
|
12 |
engine = create_engine(
|
13 |
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
|