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.
)
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 :)
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.
Perhaps in fixtures was missing something.
To check this change: remove docker image and build again (1st terminal:
docker rmi postgres
, thendocker-compose up --build
, 2nd terminal:make load_data
) 3rd create new admin userdocker-compose exec web python manage.py createsuperuser
- now you may create admin like admin, password admin :)