The Kigali Sustainability Dashboard is a Django-based web application designed to manage and visualize sustainability data for Kigali City, Rwanda. This project provides a comprehensive CRUD (Create, Read, Update, Delete) interface for various sustainability metrics across different districts and sectors of Kigali.
- Manage data for Districts, Sectors, Energy Consumption, Waste Management, Green Spaces, Public Transportation, Air Quality, and Citizen Initiatives
- User-friendly interface for data entry and visualization
- CRUD operations for all data models
- Responsive design for desktop and mobile use
- Python 3.x
- Django 3.x
- PostgreSQL
- HTML/CSS
- JavaScript (optional for enhanced UI)
-
Clone the repository: git clone URL cd kigali-sustainability
-
Create a virtual environment and activate it: python -m venv venv source venv/bin/activate # On Windows use venv\Scripts\activate
-
Install the required packages: pip install -r requirements.txt
-
Set up the PostgreSQL database and update the
DATABASES
configuration insettings.py
-
Apply migrations: python manage.py migrate
-
Create a superuser: python manage.py createsuperuser
-
Run the development server:
python manage.py runserver 8000
-
Access the application at
http://localhost:8000
- Use the navigation menu to access different data categories
- Add, view, edit, and delete records for each category
- Use the admin interface (
/admin
) for advanced data management
sustainability/
: Main Django app directorymodels.py
: Data models for the applicationviews.py
: View functions for handling requestsforms.py
: Form classes for data inputurls.py
: URL configurations for the apptemplates/
: HTML templates for rendering pageskigali_sustainability/
: Project settings directorymanage.py
: Django's command-line utility for administrative tasks
Contributions to improve the Kigali Sustainability Dashboard are welcome. Please follow these steps to contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes and commit them (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Django community for the excellent web framework and documentation