mod_wsgi and apache vs. paster

29 views
Skip to first unread message

Kent

unread,
Mar 26, 2012, 11:46:07 AM3/26/12
to mod...@googlegroups.com
Graham,
  How can I detect from within my application whether it is being run by apache with mod_wsgi versus run by paster?

I'm assuming there is a fairly nice way to determine this.

Thanks for your time,
Kent

Kent

unread,
Mar 26, 2012, 12:02:02 PM3/26/12
to mod...@googlegroups.com
I found this:

if "shell" in sys.argv:

And I'll use that unless someone has a better way.

Thanks!

Graham Dumpleton

unread,
Mar 26, 2012, 3:28:27 PM3/26/12
to mod...@googlegroups.com
See:

http://code.google.com/p/modwsgi/wiki/TipsAndTricks#Determining_If_Running_Under_mod_wsgi

Graham

> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/LLagqq3tvpUJ.
>
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
> modwsgi+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

Kent

unread,
Mar 27, 2012, 1:01:55 PM3/27/12
to mod...@googlegroups.com
Thanks very much.
Reply all
Reply to author
Forward
0 new messages