The project demonstrates a simple CRUD application built with Django.
- Custom User Model
Extend the default user model using
AbstractUser
to add fields like bio or profile picture while retaining authentication features.
- CRUD Operations
Manage resources with full Create, Read, Update, and Delete functionality.
- PostgreSQL
Use PostgreSQL as the database backend.
- Responsive UI
Create a responsive user interface with Bootstrap CDI.
It is recommended to have latest version of the following installed in your machine:
git clone https://github.com/mkeithX/django-crud-demo.git
cd django-crud-demo
py -m venv .venv
py -m pip install --upgrade -r requirements.txt
cp .env.example .env
SECRET_KEY= ALLOWED_HOSTS_IN_DEV= STATICFILES_DIRS= # Database Cofig DB_NAME= DB_HOST= DB_PORT= DB_USER= DB_PASS= DB_TEST= DB_SSL=
You can use the pgAdmin to setup database
py manage.py migrate
py manage.py createsuperuser
py manage.py runserver
Open http://127.0.0.1:8000/ in your web browser to view the application.
This project uses a custom user model defined in the accounts app. It’s important to configure the custom user model before running the initial migration. Ensure that the AUTH_USER_MODEL
setting in settings.py
is properly set:
AUTH_USER_MODEL = 'apps_users.User'
This project includes custom commands that enhance its functionality and simplify tasks. Read the docs to learn more.
See License.
More cool stuff in my website.