dangobangojango
Go to file
2019-06-14 20:41:55 +02:00
mysite adddddd 2019-06-14 20:41:55 +02:00
polls adddddd 2019-06-14 20:41:55 +02:00
.gitignore adddddd 2019-06-14 20:41:55 +02:00
manage.py adddddd 2019-06-14 20:41:55 +02:00
readme.md adddddd 2019-06-14 20:41:55 +02:00

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