Forums

Starting up

Hi all I´m new to python and just set up the Configuration for MYUSERNAME.pythonanywhere.com and uploaded a new.py file What is the adress for this file in the web-browser? MYUSERNAME.pythonanywhere.com/new.py throws a 404 Thank you

Hi, it's not clear to me what are you actually trying to do -- could you explain what do you want to achieve?

Hi pafk sure, I have a file that works on my desktop connecting to an api and outputting a .txt file. I want to publish it on a website so I found python anywhere and just assumed that uploading the .py file would work. Apologies if I misunderstood the process.

What exactly do you want to publish on your site?

The resulting .txt

Oh, I see. In that case you need to turn your script into web app, it won't work in a way you're trying to do that. There are however multiple ways to do that. As an inspiration you can take a look at this blog post: https://blog.pythonanywhere.com/169/.

Thank you for your help and guidance pafk really appreciated