Web2py on Koding.com

123 views
Skip to first unread message

wuelfhis asuaje

unread,
Mar 14, 2014, 2:50:36 PM3/14/14
to web...@googlegroups.com
I've just deployed my app there with latest meb2py source

Configured apache, everythig looks fine, except when i try to get ajax links created like (A(IMG(..)..calback(myfunction()))

The links point to something like /myapp/controler/function but in my machine point to something like /myapp/#null

Don't know where to start looking !

Can you help?

Richard Vézina

unread,
Mar 14, 2014, 3:07:33 PM3/14/14
to web2py-users
Showing the callback code would help.

Richard


--
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 web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

黄祥

unread,
Mar 15, 2014, 1:29:32 AM3/15/14
to web...@googlegroups.com
please take a look at :
http://www.web2pyslices.com/slice/show/1956/install-web2py-on-kodingcom

what is still outstanding is about the admin page still can not reach it said :
admin disabled because unable to access password file

perhaps experts in here, have the solution for that
already tested :
cd /home/www-data/web2py
sudo -u www-data python -c "from gluon.widget import console; console();"
sudo -u www-data python -c "from gluon.main import save_password; save_password(raw_input('admin password: '),443)"

but still got the same result

best regards,
stifan

wuelfhis asuaje

unread,
Mar 15, 2014, 4:58:25 PM3/15/14
to web...@googlegroups.com
The weird thing here is that app runs fine locally, even in pythonanywhere !

i don't know what's wrong

Starting to think its something with koding.com


You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/KibW5SWue0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

wuelfhis asuaje

unread,
Mar 15, 2014, 5:00:17 PM3/15/14
to web...@googlegroups.com
Thanks let me try it out


--
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/KibW5SWue0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

wuelfhis asuaje

unread,
Mar 18, 2014, 11:54:47 AM3/18/14
to web...@googlegroups.com
Thas the code i'm using, is the main view /default/index.html

{{extend 'layout.html'}}


          <div class="img">
            {{=A(IMG(_src=URL('static/images','config2.jpeg'), _alt="Empresa, usuarios y parametros",  _width="80", _height="80", _class="none"),  
               callback=URL('default','config'), target="modulos" ) }}           
            <p><center><strong>Configurar empresa</strong></center>
            </div>
...
...

Some more divs with same structure

Watching page code from right button see source code:

Bad code:

<div class="img"> 
<a data-w2p_disable_with="default" data-w2p_method="POST" data-w2p_target="modulos" href="/PyRest/default/config" id="f56a3901-d32b-4eaa-a089-21de71450aa8"><img alt="Empresa, usuarios y parametros" class="none" height="80" src="/PyRest/static/images/config2.jpeg" width="80" /></a>			
<p><center><strong>Configurar empresa</strong></center>
</div>

good Code (from my machine)

<div class="img"> <a href="#null" onclick="ajax(&#x27;/PyRest/default/config&#x27;,[],&#x27;modulos&#x27;);return false"><img alt="Empresa, usuarios y parametros" class="none" height="80" src="/PyRest/static/images/config2.jpeg" width="80" /></a> <p><center><strong>Configurar empresa</strong></center> </div>


Seems like web2py is not interpreting or updating dom of the page or something like that








wuelfhis asuaje

unread,
Mar 18, 2014, 12:30:58 PM3/18/14
to web...@googlegroups.com
Update

I've created this app with web2py 2.3.2 But i'd like to use latest version 2.9.5

Thanks

wuelfhis asuaje

unread,
Mar 18, 2014, 12:39:55 PM3/18/14
to web...@googlegroups.com
Ok people

The problem is the difference on versions from 2.3.2 to 2.9.5, now

Can somebody tell me how to fix it ! How to make it run ?

Thanks

wuelfhis asuaje

unread,
Mar 18, 2014, 3:04:52 PM3/18/14
to web...@googlegroups.com
Ok People i solved !

I just copied web2py.js and (as i have a newer version of jquery 1.8.3) jquery.js to app/static folder

End of the story !

António Ramos

unread,
Mar 20, 2014, 7:20:45 AM3/20/14
to web...@googlegroups.com
I looked at koding as an alternative to action.io where i have some problems, maybe because i´m no root there. (or even worse, i suck at linux !!)

In koding i installed web2py but i cannot start it from the command line

What is the tricK?

python web2py.py -i 0.0.0.0 -p 8000 -a 123 &
does not start web2py

Help please

Thank you


--
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 web2py+un...@googlegroups.com.

wuelfhis asuaje

unread,
Mar 20, 2014, 11:14:21 AM3/20/14
to web...@googlegroups.com
Well i must tell you i couldn't even, i just configured the apache to serve web2py by wsgi on port 80 it's very easy

Let me know if you want the config files !


You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/KibW5SWue0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.

黄祥

unread,
Mar 20, 2014, 11:29:48 AM3/20/14
to web...@googlegroups.com
had you by any chance made the admin app worked in koding.com with apache installed?

best regards,
stifan

wuelfhis asuaje

unread,
Mar 21, 2014, 12:24:45 PM3/21/14
to web...@googlegroups.com
Oh no i wish i could !


--
Reply all
Reply to author
Forward
0 new messages