This is a Bit Bingo app written in Django 5.0, uses Python 3.11.
Inspired by and evolved upon this project here: https://github.com/AsbjoernJC/Bingo
Bingo in ./bingo
$base_url/admin/
- Administration, mostly for changing data of bingo numbers hehe$base_url/bingo/
- The bingo app site$base_url/bingo/gen/
- Bingo ticket pdf generator
- Install python
- Install requitements
pip install -r requirements.txt
- Generate secret key in python shell:
from django.core.management.utils import get_random_secret_key; get_random_secret_key()
- set .env file:
DJANGO_SECRET_KEY="INSERT YOUR GENERATED KEY HERE"
DJANGO_DEBUG=False
DJANGO_CSRF_COOKIE_SECURE=True
DJANGO_SESSION_COOKIE_SECURE=True
python manage.py migrate
python manage.py collectstatic
python manage.py runserver
- ...
- Profit?
Install python3 with pip
sudo apt install python3 python3-pip python3-venv
- Create virtual environment
python3 -m venv venv
- Activate virtualenv
source venv/bin/activate
- Install packages
pip3 install -r requirements.txt
- Generate secret key in python shell:
from django.core.management.utils import get_random_secret_key; get_random_secret_key()
- set .env file:
DJANGO_SECRET_KEY="INSERT YOUR GENERATED KEY HERE"
DJANGO_DEBUG=False
DJANGO_CSRF_COOKIE_SECURE=True
DJANGO_SESSION_COOKIE_SECURE=True
python manage.py migrate
python manage.py collectstatic
- ...
- Profit
python manage.py runserver
- ...
- Profit?
with gunicorn:
gunicorn Bingo.wsgi
(flags and ip/port may be set also)- ...
- profit?