I've seen several posts that talk about using flask with mod_wsgi; however 
i cannot seem to get it to work at all.

I have debugged to ensure that my flask app is loading by printing tags to 
the log; however I'm not seeing anything after:

from flask import Flask


hello_world3.py

print '1'
from flask import Flask
print '2'
app = Flask(__name__)
print '3'


@app.route("/")
def hello():
    print "4"
    return "hello world 3"

if __name__ == "__main__":
    app.run(Debug=True, Port=8080)


[Thu Oct 24 11:46:57.803855 2013] [:warn] [pid 10116:tid 1896] mod_wsgi: 
Compiled for Python/2.7.3.
[Thu Oct 24 11:46:57.803855 2013] [:warn] [pid 10116:tid 1896] mod_wsgi: 
Runtime using Python/2.7.5.
[Thu Oct 24 11:46:57.850729 2013] [mpm_winnt:notice] [pid 10116:tid 1896] 
AH00354: Child: Starting 64 worker threads.
[Thu Oct 24 12:24:29.716800 2013] [:error] [pid 10116:tid 1260] Activating 
BASELINe virtual environment
[Thu Oct 24 12:24:29.779299 2013] [:error] [pid 10116:tid 1260] 1

OS: Windows Server 2003
Apache: 2.4.6
mod_wsgi: 24 27
Python 2.7.5

------
hello_world.wsgi:

import sys
sys.path.insert(0, "o:/ctm/ctmToolsService/wsgi-scripts")

activate_this = 'O:/Python27/BASELINe/Scripts/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))

from hello_world3 import app as application


 

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to