I
I
Imamatory2014-06-11 02:14:12
MySQL
Imamatory, 2014-06-11 02:14:12

Django admin shows error when displaying table content. How to fix?

Hello, if you go to the users or groups section in the admin panel, it displays a message

Database error
Your database is not configured correctly. Make sure the appropriate tables have been created and that the appropriate user is allowed to access them.


The mysql database was created through the hosting panel, all tables were created by the syncdb command. Even records are added to the table, however, it is not possible to view their contents due to an error.
Django 1.6
python2.7.5
To make it clear what is happening, I am attaching a screen
fba5a34eac2c4ac19a2a23bccc73fe49.png
variable DEBUG=true.
Have ssh access

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Imamatory, 2014-06-18
@Imamatory

UPDATE: The problem was solved by reconfiguring .htaccess (thanks to tech support)

S
Semyon Voronov, 2014-06-11
@Gineaser

in settings.py django.contrib.admin app added to INSTALLED_APPS?

I
Ivan Soshnikov, 2014-06-11
@soshnikov

I understand that in settings.py you have DEBUG=False
Turn on true and see what it outputs.
If it is possible to access the server via ssh, you can manually request a data sample and look at the trace there.
In general, there is not enough information. If something is not clear, write in the comments.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question