Building a Task Management API using Django Rest Framework.
This README shows the basic steps to get the project running locally: install Python, create a virtual environment, install dependencies, run migrations, and start the dev server.
- Git
- Python 3.10+
pip(comes with Python)
https://github.com/Sushantz7/Task-Management-API.git
cd Task-Management-APImacOS/Linux
python3 -m venv .venv
source .venv/bin/activateWindows(PowerShell)
python -m venv .venv
.venv\Scripts\Activate.ps1Windows(cmd.exe)
python -m venv .venv
.venv\Scripts\activatepip install -r requirements.txtpython manage.py migrateTo access the Django admin page.
python manage.py createsuperuserDJANGO_SECRET_KEY=your-secret-key-here
# Debug mode (use True for development, False in production)
DEBUG=True
# Allowed hosts (comma-separated, e.g. 127.0.0.1,localhost,mydomain.com)
ALLOWED_HOSTS=127.0.0.1,localhost
# Database configuration (SQLite default)
DB_ENGINE=django.db.backends.sqlite3
DB_NAME=db.sqlite3
# Example PostgreSQL config (uncomment and fill if needed)
DB_ENGINE=django.db.backends.postgresql
DB_NAME=your_db_name
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_HOST=localhost
DB_PORT=5432
python manage.py runserverNow by clicking on the provided link on the terminal you can access the API View.