Andrew!!

It works !!!

Two things were keys.

1. setting gluon module in "libs" directory
2. and making environment to see that module.

Thank you for your help! :)


2012년 5월 19일 토요일 오후 12시 14분 5초 UTC+9, Andrew 님의 말:
>
> JungHyun,
>
>
> Here's my project structure with application file attached- Let me know if 
> this helps.
>
> data/
>     .
>     ..
>     
> libs/
>     gluon (moved from web2py dir)
>
> wsgi/
>     application - Attaching this to post
>     web2py/
>           ..std web2py minus gluon dir moved to libs..
>
> .openshift/ (nothing modified)
>      action_hooks
>      cron
>      markers
>
> On Tuesday, May 15, 2012 2:55:07 AM UTC-5, JungHyun Kim wrote:
>>
>> Hello. I'm now trying to use redhat openshift.
>>
>> I am struggling access database - mysql-5.1 - which is set via openshift 
>> cartridge.
>> I got admin user(admin), password and database name(we2py).
>> So I modified database setting in models/db.py 
>>
>> as
>>
>> db = DAL('mysql://admin:passw...@web2py-codingday.rhcloud.com/web2py')
>>
>> But web2py application can't connect to mysql.
>>
>> OperationalError: (2003, "Can't connect to MySQL server on '
>> web2py-codingday.rhcloud.com' (111)")
>>
>> I think I couldn't understand enough. I am a noob for both web2py and 
>> openshift.
>>
>> How can I make web2py connect to database right?
>>
>> Thank you.
>>
>>
>>

Reply via email to