Can't log in to admin interface:

瀏覽次數:53 次
跳到第一則未讀訊息

C.J.S. Hayward

未讀,
2017年3月15日 下午3:28:182017/3/15
收件者:django...@googlegroups.com

In Why is Django not filling out variable entries? , insight based on a comment helped me get past the main obstacle I was struggling with, of not being able to get to the admin login screen.

However, after that was addressed, there was another other issue that was uncovered, issues that also related to the admin interface but don't seem to be immediately connected to the initially reported issue. Specifically:

While I can submit the login form, I don't seem to really seem to be able to log in. Every time I've entered my credentials I've been redirected to a Django admin login page, with the URL varying somewhat. I know it's treacherously easy to mistype a long password, but when I was getting login failures I used copy-and-paste to assign the same password as I was trying to log into again. So while mistyping a password is an easy trap to get stuck in, I adapted by trying an approach where the reassigned user password is the same pasted password as in trying to log in.

I tried manually entering the first and last character to eliminate the possibility of including unwanted whitespace, but it still doesn't work. Django has claimed incorrect login details for every administrative set of credentials I've offered. (I've also used python manage.py shell to confirm that the username for the superuser is what I thought it was: admin.

What if anything do I need to be able to log in to an administrative account, created by python manage.py createsuperuser?

(From http://stackoverflow.com/questions/42818766/how-can-i-get-the-django-admin-to-look-and-feel-its-normal-self )



--
Christos Jonathan Seth HaywardChristos Jonathan Seth Hayward, an Orthodox Christian author (main site • bookshelf).

If you read one of my books, I would ask you to very seriously consider The Best of Jonathan's Corner. It has favorites I've been collecting for years.

If you're looking for a place to start, why not Doxology?

Melvyn Sopacua

未讀,
2017年3月15日 晚上11:03:392017/3/15
收件者:django...@googlegroups.com

On Wednesday 15 March 2017 14:27:55 C.J.S. Hayward wrote:

> Django has claimed incorrect login details for every

> administrative set of credentials I've offered. (I've also used

> python manage.py shell to confirm that the username for the superuser

> is what I thought it was: admin.

 

Any chance you have django.contrib.sites in INSTALLED_APPS but do NOT have a SITE_ID configured in settings.py?

--

Melvyn Sopacua

回覆所有人
回覆作者
轉寄
0 則新訊息