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

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to