A simple-to-use app for selecting winners for raffles and giveaways. Geared towards Patreon, as the idea came from a Patreon creator who couldn't find an easy way to select multiple winners for giveaways.
Entering one user per line, selecting the number of winners, and optionally a number of bonus winners, the app will run through the list and choose winners for you, showing them in a couple different ways to make for good screenshots for Patreon posts. It's open for anybody to use, so give it a shot over at https://patreonraffle.app. No login, no accounts, no tracking, no limits.
- Python
- Django
- Web Awesome
- Docker
- Docker Compose
- Local development
- Ensure Python is installed
- Clone the repository:
git clone <repository_url> - Navigate to the project directory and create a virtual environment:
python -m venv venv && source venv/bin/activate - Install the project's dependencies:
pip install -r requirements.txt - Start the development server:
python manage.py runserver
- Production deployment
- Clone repo
- Build docker image:
docker build -t patreon_raffle . - Start container:
docker run -d patreon_raffle - Point web server (NGINX, Apache, etc.) at localhost:8000
- Environmental variables
- DJANGO_SECRET_KEY
- 60 character random string
- DEBUG (default 0)
- Set to 1 to enable debugging mode. Don't run debugging mode in production.
- ALLOWED_HOSTS (default localhost,127.0.0.1)
- Comma separated list of domains allowed to access the site
- CSRF_TRUSTED_ORIGINS
- Comma separated list of schemas + domains allowed to POST to the site
- DJANGO_SECRET_KEY
This project is licensed under Apache-2.0 license.