GastroSal is a Django monolith for anonymous salary submissions and filtering in the gastronomy/hospitality sector.
- Python 3.13
- Django 5.2
- WhiteNoise for static serving
- PostgreSQL in production (
DATABASE_URL), SQLite fallback in local dev
- Create virtual environment and install dependencies.
python -m venv env
env\Scripts\activate
pip install -r requirements.txt- Configure environment.
copy .env.example .envSet at least:
SECRET_KEYDEBUG=Truefor local development
- Apply schema and run server.
python manage.py migrate
python manage.py runserver- Run tests:
python manage.py test - Run app-only tests:
python manage.py test jobdata - Deployment checks:
python manage.py check --deploy - Collect static files:
python manage.py collectstatic --noinput
- WSGI entrypoint:
gastrosal.wsgi:application - Procfile command:
web: gunicorn gastrosal.wsgi:application --bind 0.0.0.0:$PORT - Set
DEBUG=Falsein production and provide secure values for SSL/HSTS env vars from.env.example.
gastrosal/: project config (settings.py,urls.py,wsgi.py)jobdata/: app domain (models, forms, views, templates)jobdata/templates/jobdata/: user-facing pagesjobdata/static/jobdata/: source static assets