Skip to content

BibekRai44/Postgresql-database-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

python-and-postgres

Connecting postgresql from python

Basically here, I have connected postgresql management with python and made changes in database from python. I had used Psychopg2 module to connect postgresql database and made basic things like creating table and inserting data or values inside table.

Project Image 1

github issue solution

Project Image 2

github issue solution2

Project Image 3

image3

Project Image 4

image4

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

Psychopg2 module

python

PostgreSQl Database

Run Locally

Clone the project

  git clone https://github.com/Bibekkun/Postgresql-database-with-python.git

Go to the project directory

   cd Postgresql-database-with-python

To setup Database

   python init_db.py

To run server

   python app.py

All Done!

THANKS.

About

Made a simple flask app in Postgresql where you can post data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published