426 B
426 B
howto:
# create env
python3 -m venv venv
# install deps
source venv/bin/activate
python -m pip install django
# bootstrap app
python manage.py makemigrations
python manage.py migrate
# create admin user
python manage.py shell -c "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin123')" 2> /dev/null || true
# serve app
python manage.py runserver 49376