This is a mini project Django-based web application about shipment .
Before setting up the project, make sure your system meets the following requirements:
- Python: 3.11
- Django: 5.1
- MySQL: 8.0
Follow the steps below to set up the project on your local machine.
-
Clone the repository:
git clone https://github.com/Devajayantha/shipment_django.git
-
Navigate into the project directory:
cd shipment_django
-
Create a virtual environment:
python -m venv venv source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Copy the
.env.example
file to.env
:cp .env.example .env
-
Set up the database:
- Configure your database connection in the
.env
file. - Run migrations to create the necessary tables:
python manage.py migrate
- Configure your database connection in the
-
Run project on deplopment mode:
python manage.py runserver
DEBUG=true
SECRET_KEY=
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
Here’s some screenshoot from my work.