Friday, 9 September 2022

My FIrst Python Project

 To create Python

1.create enviornment

2.install flask

2.install flaskjson

2.install flasksqlalcahmey

4.run cmds 

  1.flask run to run in local server

5.create dabase locally

i.from app import db

ii.db.create_all()
iii.from app import Employee
iv.emp = Employee(firstname="pk", lastname="p", gender="f", salary=123)
v.db.session.add(emp)
vi. db.session.commit()
vii.emp = Employee(firstname="pk", lastname="p", gender="f", salary=123)
viii. db.session.add(emp)
xi.db.session.commit()
x Employee.query.all()


sample git hub code 


No comments:

Post a Comment

Enviri JD for BI

  Job Description: Experience working closely with business users/leaders. Well-versed in requirement gathering and can lead business users ...