This project is a Django-based web application using Django Rest Framework (DRF) for Task Management.
-
Clone the repository:
git clone https://github.com/yourusername/yourproject.git cd TaskManager -
Build and start the Docker containers:
docker-compose up --build -d
-
Open your browser and navigate to
http://localhost:8000.
-
Clone the repository:
git clone https://github.com/yourusername/yourproject.git cd TaskManager -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install the dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open your browser and navigate to
http://localhost:8000.
Ensure you have a .env file in the root of your project with the following content:
DATABASE_NAME=myproject
DATABASE_USER=myprojectuser
DATABASE_PASSWORD=myprojectpassword
DATABASE_HOST=db
DATABASE_PORT=5432
SECRET_KEY=your_secret_key
DEBUG=True
By following these instructions, you will have a fully functional Django project that can be run using Docker for containerized deployment or using a virtual environment for local development.