A modern, responsive Django website with multiple pages and clean design.
You must have installed a Python version bigger than 3.9. For this project, the development was done under 3.12
You must have Node 22 installed on your machine
You must have a Docker runtime installed, you can either install Docker Desktop, Podman or Rancher and configure it to use the Docker CLI.
-
Setup a
.env.dev
on theinfra
folder Copy the contents ofinfra/.env.example
and save the changes as a new file. Use the name.env.dev
-
Start the development environment This will ensure that you get the correct dependencies installed and also a Postgres DB ready to go.
docker-compose up --build
-
Visit http://localhost:8000/ in your browser
-
Build assets if changing JS or CSS Assets are built separately
cd backend
node build.js
final_project/
├── dashboard/ # Main Django project directory
├── docs/ # Project documentation
│ ├── DESCRIPTION.MD # Project description
│ ├── USE_CASES_UML.md # Use cases and UML diagrams
│ └── SCENARIOS.md # Project scenarios
├── venv/ # Python virtual environment
├── activate.sh # Virtual environment setup script
└── .gitignore # Git ignore rules
If you prefer to run commands manually:
- Create and activate virtual environment:
python3 -m venv venv
source venv/Scripts/activate # On Windows with Git Bash
- Install dependencies:
pip3 install -r requirements.txt
- Run migrations:
cd backend
python3 manage.py migrate
- Start the development server:
python3 manage.py runserver
-
If scripts are not executable:
- Run
chmod +x *.sh
to make scripts executable
- Run
-
If Django is not found:
- Make sure your virtual environment is activated
- Run
pip3 install -r requirements.txt
-
If migrations fail:
- Run
python3 manage.py makemigrations
- Then
python3 manage.py migrate
- Run
-
If templates aren't found:
- Check that your app is in
INSTALLED_APPS
- Verify template directory structure
- Ensure template names in views match actual files
- Check that your app is in