Correction....
edit the file and change
path = os.path.dirname(os.path.abspath(__file__))
into
path = '/home/username/web2py/'
This file does not like to be symlinked.
On Tuesday, 17 September 2013 17:17:38 UTC-5, Massimo Di Pierro wrote:
>
> Edit the file and at the top add:
>
> import os; os.chdir(' /home/username/web2py')
>
> On Tuesday, 17 September 2013 17:09:20 UTC-5, Epyt Otorp wrote:
>>
>> There is a README in /web2py/handlers/README
>> Doh; completely missed that. However, it still won't work!
>>
>> You need to copy /web2py/handlers/wsgihandler.py
>>> into /web2py/wsgihandler.py and link the latter.
>>>
>> I did this. I have:
>> /home/username/web2py/wsgihandler.py
>> /home/username/mydomain.com/passenger_wsgi.py
>> passenger_wsgi.py -> /home/username/web2py/wsgihandler.py
>>
>> And I get the exact same error about running from the wrong folder. What
>> am I doing wrong? (I get the error trying to test by doing
>> /home/username/web2py/passenger_wsgi.py --- in the browser, I have this: An
>> error occurred importing your passenger_wsgi.py)
>>
>> This was a much debated change in web2py 2.6.x. We decided that handlers
>>> are examples that users should copy because they may want to modify them.
>>>
>> Is there any reason, beyond choosing the python version, a complete
>> newbie user (me) would ever need to modify it? Or is web2py targeted more
>> towards experienced developers? (After much research, and especially the
>> 'security' section of web2py's manual, it really seemed usable for complete
>> newbies, in addition to experts who might want to modify handlers! ;-) )
>>
>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.