SOLVED.

On Thursday, January 1, 2015 9:17:57 PM UTC-6, Malik Rumi wrote:
>
> I have a wsgi problem I am hoping you can help me with. I am running 
> Django1.7 with gunicorn 19.1.1 and wsgiref 0.1.2. I am trying to get this 
> to run on Heroku. The last error was that it could not find the template 
> home.html and that there was a wsgi error. I added TEMPLATE_DIR to my 
> settings and found an article on Google Groups about mod_wsgi. I am not 
> running mod_wsgi but it said there that many of the same solutions would 
> apply so I decided to try it.
>
>  
>
> However, when I ran the test, much to my surprise, I saw Hello World. I 
> checked the logs, and saw 200 OK. I thought maybe somehow the template 
> issue had also been a wsgi issue, or perhaps the addition of the wsgi test 
> code had somehow fixed a syntax error in my wsgi.py by closing a tag or 
> something. Those were my best wild guesses, anyway.
>
>  
>
> So I removed the test code, ran mine again, and sure enough, I was right 
> back to the uninformative wsgi errors that led me to seek help in the first 
> place. But at least there was no template error this time.
>
> I do not understand how the presence of wsgi debug code could give me 200 
> ok and then when I take it out I get 500.
>
>  
>
> I ran it again with the code and debug set to true. I got the same Hello 
> World and a 200 ok in the logs. I thought perhaps the code was catching the 
> start of the web process but missing the end when it crashed, but no, my 
> Heroku dashboard reports the web dyno is up and running fine.
>
>  
>
> I am at a loss as to what to do next here. If you would be so kind as to 
> share some insights, I would be most appreciative.  
>
> ps: This is also in the logs but I have been unable to find any useful 
> information on it:
>
> gunicorn.http.wsgi.WSGIErrorsWraper object at 0x7f391e254650
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0edbfd4f-d1de-436f-ba89-85b0cc99f487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to