A World Cup 2026 analytics app built with Django and MongoDB.
Repository: https://github.com/AfiMaameDufie/django-mongodb-mql-panel — feel free to fork it or clone it as-is to get started.
- Python 3.13+
- MongoDB Atlas cluster (or local MongoDB instance)
- Django 6.0+
- Clone the repo and create a virtual environment:
git clone https://github.com/AfiMaameDufie/django-mongodb-mql-panel.git
cd django-mongodb-mql-panel
python -m venv venv
source venv/bin/activate- Install dependencies:
pip install -e .This installs all required packages defined in pyproject.toml:
django>=6.0django-mongodb-backenddjango-mongodb-extensionsdjango-debug-toolbarpython-dotenv
- Create a
.envfile with your MongoDB connection string:
MONGODB_URI="mongodb+srv://<username>:<password>@<cluster>.mongodb.net/worldcup?retryWrites=true&w=majority"- Run migrations and load data:
python manage.py migrate
python manage.py load_matches- Start the server:
python manage.py runserver- Visit http://localhost:8000 and use the Django Debug Toolbar's MQL panel to inspect queries.