This is a simple Django CRUD (Create, Read, Update, Delete) project using a PostgreSQL database.
- Create, Read, Update, and Delete records
- PostgreSQL as the database
- Django admin panel
- Bootstrap for basic UI styling
Make sure you have the following installed:
- Python (>=3.8)
- PostgreSQL
- pip and virtualenv
git clone https://github.com/rohitatzignuts/django_crm.gitpython -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activateCreate a PostgreSQL database and update the DATABASES settings in settings.py:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'your_db_name',
'USER': 'your_db_user',
'PASSWORD': 'your_db_password',
'HOST': 'localhost',
'PORT': '5432',
}
}python manage.py migratepython manage.py createsuperuserpython manage.py runserverAccess the app at http://127.0.0.1:8000/.
- Navigate to the homepage to perform CRUD operations.
- Use the Django admin panel at
http://127.0.0.1:8000/admin/.