I don't want a class created on each request, I want to get environ
when initializing my application. For example:
if environ['SERVER_ADDR']=='127.0.0.1': # If localhost, add a Dev menu
These values would stay the same throughout my session. Now how can I
get these values in __init__? Is there
Gotcha, thanks for the tip! I'll look into it.
On Oct 19, 4:56 pm, Graham Dumpleton graham.dumple...@gmail.com
wrote:
What are you setting in nginx configuration to actually set one of the
headers?
They need to be set by nginx when it is proxying through to backend
and it does not do that
On Thu, 20 Oct 2011 17:21:37 +0300, Gnarlodious gnarlodi...@gmail.com
wrote:
I don't want a class created on each request, I want to get environ
when initializing my application. For example:
if environ['SERVER_ADDR']=='127.0.0.1': # If localhost, add a Dev menu
These values would stay the
Correct.
The WSGI specification doesn't cover any way of providing application
initialisation information. You will need to provide that manually
somehow and no way it can be passed in automatically.
Graham
On 21 October 2011 01:35, Joonas Lehtolahti godjo...@gmail.com wrote:
On Thu, 20 Oct
What is the error in the Apache error log file?
Are you absolutely sure that you restarted Apache after adding:
LoadModule wsgi_module modules/mod_wsgi.so
and that it was working after doing that and before doing anything else?
BTW, that blog is out of date. I hope you ignored the links in
ya am sure
--
You received this message because you are subscribed to the Google Groups
modwsgi group.
To post to this group, send email to modwsgi@googlegroups.com.
To unsubscribe from this group, send email to
modwsgi+unsubscr...@googlegroups.com.
For more options, visit this group at
But what about the error from the Apache error log?
And are you using the most recent mod_wsgi binaries?
You might also make sure you are using all 32 bit binaries for Apache,
Python and mod_wsgi and that Python is installed for all users. You
can't mix 32 and 64 bit.
You also should not have