Lightweight Django web project used for the Gnowee PSC training exercises and demos. The Django app lives in the psc_training_web package and this repository contains the minimal project wrapper to run and develop locally.
psc_training_web/— Django project package (settings, urls, wsgi/asgi)manage.py— Django management scriptLICENSE— MIT license for the repository
- Python 3.10+ (use a virtual environment)
- pip
- Recommended: a virtualenv or venv
- Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate- Install dependencies
If this project has a requirements file, install it. If not, install Django manually:
# if you have requirements.txt
pip install -r requirements.txt
# or, install Django (example)
pip install Django- Run migrations and start the development server
python manage.py migrate
python manage.py runserverThe site will be available at http://127.0.0.1:8000/ by default.
- Create a new Django app:
python manage.py startapp myapp- Create a superuser:
python manage.py createsuperuser- Run tests:
python manage.py testEdit settings in psc_training_web/settings.py. For production deployments, ensure you set DEBUG = False, configure ALLOWED_HOSTS, database settings, static files, and secret key management via environment variables.
Contributions are welcome! Please see CONTRIBUTING.md for detailed setup instructions, coding conventions, and workflow guidelines.
We use pre-commit hooks to maintain code quality. After cloning the repository:
pip install -r requirements.txt # Installs Django + dev tools
pre-commit install # Sets up git hooksThis project is licensed under the MIT License — see the LICENSE file for details.