The Blockchain for Allocation and Decentralization Group Website
Start the containers with docker-compose start
Navigate to 127.0.0.1:8000
Use docker-compose exec web python manage.py createsuperuser to create an admin account
Use docker-compose exec web python manage.py auction to auction all spots to highest bids (first admin functions as school)
Requires Docker and docker-compose
git clone https://github.com/PhilipConte/badserver
cd badserver
echo "BAD_DEBUG=1
BAD_ALLOWED_HOSTS=*
BAD_SECRET_KEY=temp
DATABASE_URL=postgres://postgres:temp@db/bad_db
POSTGRES_PASSWORD=temp" > .env
docker-compose up -d
docker-compose exec web python manage.py makemigrations
docker-compose exec web python manage.py migrateYou can use docker-compose exec web python manage.py shell to experiment with queries
I recommend often importing the following
from django.contrib.auth.models import User
from django.utils import timezone
from parking.models import *