> I took that he was on a Mac or other system which allows this, and is
> actually trying to run the command:
I am on Ubuntu 10.04.
>>> First, you can't use relative paths to files. The current working
>>> directory of the process will not be where your source code is.
>>>
>>> Second, the line:
>>>
>>> os.open("open Patient_info.pdf")
>>>
>>> isn't going to work because os.open() takes a file name not a command
>>> and also requires a second argument even when opening a file.
Ok
>>> So, you should be getting errors. That you are not suggests you
>>> haven't even set up mod_wsgi write to run this WSGI application. It
>>> could even be because you don't even have an application object in the
>>> code, although I'll give you the benefit of the doubt there and
>>> presume this is only a snipper from larger code base. If it is because
>>> of the latter, you will see errors in the Apache error log.
Yes this is just a snippet of the main code. Yes It I need to read and
write mod_wsgi.write line , and will write application object in the
code also.
No errors in Apache logs.
>>>
>>> Suggest you go back to basics and get a WSGI hello world program
>>> running and as has been suggested before, don't do stuff from scratch,
>>> use a framework such as Flask.
The application is complete in most aspects including DB accessing , I
just need to add PDF generation to it.
I shall look at ' mod_wsgi.write '.
:) as usual Thank you Mr.Kiwi and Graham :) will re-post after trying
out the suggestions.
Thank you
Nitin
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.