question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not login `http://localhost:8000/admin/`

See original GitHub issue

Describe the bug Admin can not login web site after startup.

To Reproduce Steps to reproduce the behavior:

  1. Setup
git clone https://github.com/safe-global/safe-transaction-service.git
cd safe-transaction-service/
python -m venv venv
source venv/bin/activate
pip install -r requirements-dev.txt
pre-commit install -f
  1. Create .env
cp .env.l2.sample .env
echo 'CSRF_TRUSTED_ORIGINS=["http://localhost:8000","http://127.0.0.1:8000","http://localhost:8888","http://127.0.0.1:8888"]' >> .env
  1. Startup
docker compose build --force-rm
docker compose up
  1. Create admin
docker exec -it safe-transaction-service-web-1 python manage.py createsuperuser
  1. Login Open URL http://localhost:8000/admin and login as admin, below is error messages: 1670901944410

Expected behavior Should login OK.

Environment (please complete the following information):

  • OS: Ubuntu 22.04.1 LTS
  • Browser FireFox v107.0.1

Additional context

Can not login http://localhost:8888/ also after clikc Django Login : 1670902236414

1670902261133

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gzliudancommented, Dec 15, 2022

The problem is resolved. Thank you again. Maybe the documents need refactor, such as docs directory.

1reaction
gzliudancommented, Dec 14, 2022

Thanks, I will test again tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Can't log into localhost:8000/admin ... - Stack Overflow
If I do localhost:8000/admin , I'm directed to the admin login page. I have already created id/pw through createsuperuser .
Read more >
localhost:8000 admin page · Issue #85 · bludit/bludit - GitHub
hi, whenever i try accessing the bludit admin panel with http://localhost:8000/admin/ it says the page cannot be found. however if i add ...
Read more >
Google Groups
TypeError at /admin/Cannot mix str and non-str argumentsRequest Method: GETRequest URL: http://localhost:8000/admin/Django Version: 2.1.5Exception Type:
Read more >
Can't login in my localhost - WordPress.org
Hi, i can't login in my localhost. After i write http://localhost/wordpress/wp-admin/ the username and password fields are not displayed, but a message is ......
Read more >
Error in admin: Can't log in and says error - Django Forum
Whenever I go to localhost:8000/admin , it says A server error occurred. Please contact the administrator. . I've tried reloading and python ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found