Forums

Host a static site...

HI,

I'm trying to create an static site via python anywhere, but for a reason it don't work ...

What I did: in tab Web Static files: url: /static/ and /home/chrisvdberg/static/ Then in workding directory -> I created a directory /static/ -> created an index.html Then I tryed to go to this url: http://chrisvdberg.pythonanywhere.com/chrisvdberg/static/index.html or some other options, but always get a 404 :(

Please help...

A step toward - why use pythonanywhere for static sites? Why not to try a github pages, for example?

I want to have the student get used to python anywhere a bit. The next assignment will me a dynamic website with the use of python... ;)

Hi there, does this help? https://help.pythonanywhere.com/pages/hosting-a-static-site

That's exactly what I have ..:( Is it possible to check in my system, what I'm doing wrong?

Well, in your original post, you say you have the URL as "/static/" -- did you change that already? Because it should be just "/"...

Does anyone here know how to run a .bat folder? I am trying to host a music bot and need to activate the .bat file to use it

.bat files are windows files. you can't run that in a linux environment