B
B
blackbb2016-03-07 21:12:46
Django
blackbb, 2016-03-07 21:12:46

Error 500 on django admin, what could it be?

Hello. There was a problem, I moved the site to vps (ubuntu, apache, wsgi). The site works, the login to the admin panel works, but after entering the login and password, it redirects to the page /admin/login/?next=/admin/ and the server causes an error 500. The errors contain the following lines:
'PATH_TRANSLATED': '/var/www/ azur/azur/wsgi.py/admin/login/',
'QUERY_STRING': 'next=/admin/',
'REMOTE_ADDR': '89.107.37.239',
'REMOTE_PORT': '49443',
'REQUEST_METHOD': 'POST ',
'REQUEST_SCHEME': 'http',
'REQUEST_URI': '/admin/login/?next=/admin/',
'SCRIPT_FILENAME': '/var/www/azur/azur/wsgi.py',
'SCRIPT_NAME' : u'',
'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
blackbb, 2016-03-10
@blackbb

Thanks to all. There was a problem with permissions in ubuntu

D
Dmitry Voronkov, 2016-03-07
@DmitryVoronkov

Today seems to be the day of 500 errors in django
Look here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question