moriire commited on
Commit
75121fe
1 Parent(s): 38a49b2

Update database.py

Browse files
Files changed (1) hide show
  1. 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
- #SQLALCHEMY_DATABASE_URL = "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}
 
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}