Forums

Cally my webapp from my website

Ok so i finally got some python code working! woohoo for me :p

what i created prints out some Json but i can not seem to be able to get it to do it via the browser example: https://www.pythonanywhere.com/user/USERNAME/files/home/USERNAME/web2py/addresses/createAddress.py

just prints to the screen the python code

i just want to see the Json, why is it not showing the JSON?

Hi there, scripts you create on pythonanywhere aren't publicly available via those /files/ urls. The web2py framework/documentation should have some help on how to make it part of your actual website?

hmm not sure...

i don't mind upgrading to get it to work, my host won't install the Python library i need and it works great here

I don't think you'd need to upgrade to get this to work. But you will need to learn a bit more about web2py I suspect. They have some good tutorials and a very supportive community though, so ask/look around!

i have looked around and i am asking here obviously lol

oh you mean to look elsewhere? im

This is a pretty good tutorial: Killer Web Development. The official web2py tutorial is good, too. And the people on the web2py Google group are often very helpful.

what i want to do is basically from my website call that python file from a php page.

will that work? like how could i reach that file via php and curl and get the json back?

FYI i took it out of the "web2py" forum

now its just a folder at /home/talonPower/addresses/Address.py