zetonteam / zeton_django

Hacktoberfest
Apache License 2.0
10 stars 2 forks source link

Delete admin user - password was unknown #27

Closed visse0001 closed 3 years ago

visse0001 commented 3 years ago

Deleted admin from fixtures/users. Password was unknown for us. Even if I put new SHA256 password (hashed 'admin'), this user still couldn't access /admin endpoint:

Site administration You don’t have permission to view or edit anything.

Screenshot from 2021-01-22 10-51-17 )

Perhaps in fixtures was missing something.

To check this change: remove docker image and build again (1st terminal: docker rmi postgres, then docker-compose up --build, 2nd terminal: make load_data) 3rd create new admin user docker-compose exec web python manage.py createsuperuser - now you may create admin like admin, password admin :)