Need to run:
python manage.py makemigrations users
python manage.py migrate
If using Docker:
docker-compose up
docker-compose exec web "python manage.py makemigrations users"
docker-compose exec web "python manage.py migrate"
When adding an email service, you will want to update the DEFAULT_FROM_EMAIL
setting as well as the domain name and display name in the sites table created by all-auth.
You can generate a new secret key from inside the django shell with the following:
>>> from django.core.management.utils import get_random_secret_key
>>> get_random_secret_key()
When generating files in the volume via docker exec (such as startapp
), you'll need to change ownership of the directory/files. It's common to have a docker group.
sudo chown -R <user>:<group> <file|dir>
"settings": {
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true
}