Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shanu-shahbin/django_user_management_with_postgres

This project demonstrates setting up a Django application with PostgreSQL as the database, bypassing Django's built-in model management. Instead, it uses the psycopg2 module to execute direct SQL queries for CRUD operations. The project requires Python 3.8 or higher, PostgreSQL 12 or higher, and the psycopg2 module.
https://github.com/shanu-shahbin/django_user_management_with_postgres

api django orm postgresql swagger-ui

Last synced: 5 days ago
JSON representation

This project demonstrates setting up a Django application with PostgreSQL as the database, bypassing Django's built-in model management. Instead, it uses the psycopg2 module to execute direct SQL queries for CRUD operations. The project requires Python 3.8 or higher, PostgreSQL 12 or higher, and the psycopg2 module.

Awesome Lists containing this project

README

        

Django User Management with PostgreSQL


This project demonstrates how to set up a Django application using PostgreSQL as the database, with Django's built-in model management disabled. Instead, the psycopg2 module is used to execute SQL queries directly for CRUD operations.

Installation and Configuration
Prerequisites
Python 3.8 or higher
PostgreSQL 12 or higher
psycopg2 module for PostgreSQL connectivity
Database Setup
Create the PostgreSQL Database:
Create a PostgreSQL database named user_management using SQL queries or a graphical tool like pgAdmin.
![pgAdmin 4 8_21_2024 7_09_44 PM](https://github.com/user-attachments/assets/6fab33ed-5bad-4742-8a9f-b9b8a6afeb88)
psql working
![Select SQL Shell (psql) 8_21_2024 7_15_22 PM](https://github.com/user-attachments/assets/5ab6be38-0a0f-47e7-bd2f-d2bd5845b6f9)
![SQL Shell (psql) 8_21_2024 9_16_01 PM](https://github.com/user-attachments/assets/3998d128-43ed-403c-82f7-19927adc1683)
the templete output images

![View Users - Google Chrome 8_21_2024 9_14_07 PM](https://github.com/user-attachments/assets/9c3119d8-ec90-4604-b608-2424f7591c04)
![View Users - Google Chrome 8_21_2024 9_14_39 PM](https://github.com/user-attachments/assets/b7b2db1e-705f-451c-b895-9ef6231eeff4)
![View Users - Google Chrome 8_21_2024 9_15_10 PM](https://github.com/user-attachments/assets/c987d94d-c045-480b-a093-82c8927a0bca)