To use in dev environments
- after
python manage.py shell
from django.contrib.auth.models import User
# dev environ with only a few users
l = User.objects.all()
# show user list
print(l)
# get the 1st user
u = l[0]
# set the password
u.set_password('123') # for dev
u.save()
- Only differs by initial import on 1st line
from tworaven_apps.raven_auth.models import User
# dev environ with only a few users
l = User.objects.all()
# show user list
print(l)
# get the 1st user
u = l[0]
# set the password
u.set_password('123') # for dev
u.save()
Thank you very much!!!