On Saturday 03 June 2017 01:14:57 marco coso wrote:
> i had a blog with with mezzanine, it was working, then i installed
> mezzanine-api and follow the instructions fort existing project. But
> now i always got a 500 internal server error using the browser, and
> nothing en error.log (in access.log i can see the request).
Two possible causes:
1) You have DEBUG set to off, so no backtrace or error information is generated. You don't have MAIL_ADMINS and other MAIL related Django settings configured correctly, so you don't get mails either.
2) Syntax error. This should be exposed by `python manage.py check`.
--
Melvyn Sopacua
On Saturday 03 June 2017 18:19:37 Marcello Console wrote:
> Hi, thank you for your support Melvyn .
> As far as syntax error: i run python manage.py check and it says it's
> ok. As for debug: it was set to True
> As far as for mail_admins: from the shell i got an error, but it was
> becouse google blocked it. I solved it on google panel and then try
> successsfully mail_admins() from the shell.
> Then i tried to open the site with browser, got the usual 500 internal
> server error, but no mail to admins yet. I then set DEBUG to false
> and repeat:same result, no mail to admins.
> Could i use the django shell to make some test to investigate?
Yes.
>>> from django.test import Client
>>> c = Client()
>>> c.get('/')
<TemplateResponse status_code=200, "text/html; charset=utf-8">
>>> len(c.get('/').content)
5307
etc.
But this assumes the error is in the source. If the error is in the WSGI layer, this won't help.
What is your webserver + WSGI server stack?
--
Melvyn Sopacua
django_filters/rest_framework/form.htm
if called through wget i get
{"count":0,"next":null,"previous":null,"results":[]}
but there are 2 pposts