i am trying to execute raw sql query on my python application using heroku database. i have created tables by running a script separately. model
i have configured the database as below:
engine = create_engine(os.getenv("DATABASE_URL"))
db = scoped_session(sessionmaker(bind=engine))
when i execute INSERT INTO command i get error. error
INSERT QUERY:
db.execute("INSERT INTO users (username, firstName, lastName, email, password) VALUES (:username, :firstName, :lastName, :email, :password)",
{"username": username, "firstName": firstName, "lastName": lastName, "email": email, "password": password})
db.commit()