If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#91
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... wasbit wrote: I've uploaded 45 Freeware text files to Python Anywhere - https://www.pythonanywhere.com/user/...asbit/Freeware "Sharing only works for single files, and people you share with will need a PythonAnywhere account." So, unless I can find a way to make them public, it looks like a no go. I thought you could use your own URL to "serve" the files? http://wasbit.pythonanywhere.com = "Coming Soon! This is going to be another great website hosted by PythonAnywhere. " So, in the future possibly. -- Regards wasbit |
Ads |
#92
|
|||
|
|||
Photo editor
wasbit wrote:
Andy Burns wrote: http://wasbit.pythonanywhere.com = "Coming Soon! This is going to be another great website hosted by PythonAnywhere. " So, in the future possibly. I think that message means you need to do something ... I'll have a play. |
#93
|
|||
|
|||
Photo editor
Andy Burns wrote:
I'll have a play. I created an account, enabled a web app from the dashboard (I used django with python 3.7 might be simpler ways) then upload files to the folder /home/MYUSERNAME/MYSITE/static and they are accessible as e.g. http://MYUSERNAME.pythonanywhere.com/static/MYFILE.txt You could probably knock up a minimal python script that generated an index linking to the files ... |
#94
|
|||
|
|||
Photo editor
On Sun, 6 Jan 2019 10:08:25 -0000, "wasbit"
wrote: "Shadow" wrote in message .. . On Sat, 5 Jan 2019 09:55:12 -0500, "Mayayana" wrote: "wasbit" wrote | Now uploaded over 200 text files to Koofr plus a zip file containing them | all, but I suspect there will be the same objections. | - http://k00.fr/hqbq6u14 | Same objections, yes. But thanks for your efforts. In Pale Moon I see all white, like Andy. In Firefox I see a mess with some links, like Shadow sees. But the links don't work. They go to a page that says "hotlinking not allowed!". Maybe that's because I block referrers? Could be. Yes, it no longer works when I turn referrers off. I turned referrers on and forgot to turn them off (blushes over that security blunder). I think I needed them for something on M****Hub. Did my link work ? It's exactly the same content, re-zipped to show Wasbit there's something weird with his archiver. I have no intention of "hijacking" his work. Works for me. No referrers, no javascript. https://nofile.io/f/XpM5SBwpFvx/Freeware.zip Yep works fine. You could have made the file smaller if you had excluded the zip file & compacted only the text files. Yes, but as promised, I included everything that was in your original file. Including the older files in the zip inside the zip. PS Did you ever figure out why your .zip was much larger ? []'s Thanks -- Don't be evil - Google 2004 We have a new policy - Google 2012 |
#95
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... Andy Burns wrote: I'll have a play. I created an account, enabled a web app from the dashboard (I used django with python 3.7 might be simpler ways) then upload files to the folder /home/MYUSERNAME/MYSITE/static and they are accessible as e.g. http://MYUSERNAME.pythonanywhere.com/static/MYFILE.txt You could probably knock up a minimal python script that generated an index linking to the files ... Sorry Andy, if there's no GUI then I'm lost. Following your instructions, does this work - https://www.pythonanywhere.com/user/...Freeware_lists Probably jumping the gun but I also have to make sure that no-one else can alter or add files. -- Regards wasbit |
#96
|
|||
|
|||
Photo editor
"Shadow" wrote in message
... On Sun, 6 Jan 2019 10:08:25 -0000, "wasbit" wrote: "Shadow" wrote in message . .. On Sat, 5 Jan 2019 09:55:12 -0500, "Mayayana" wrote: "wasbit" wrote | Now uploaded over 200 text files to Koofr plus a zip file containing them | all, but I suspect there will be the same objections. | - http://k00.fr/hqbq6u14 | Same objections, yes. But thanks for your efforts. In Pale Moon I see all white, like Andy. In Firefox I see a mess with some links, like Shadow sees. But the links don't work. They go to a page that says "hotlinking not allowed!". Maybe that's because I block referrers? Could be. Yes, it no longer works when I turn referrers off. I turned referrers on and forgot to turn them off (blushes over that security blunder). I think I needed them for something on M****Hub. Did my link work ? It's exactly the same content, re-zipped to show Wasbit there's something weird with his archiver. I have no intention of "hijacking" his work. Works for me. No referrers, no javascript. https://nofile.io/f/XpM5SBwpFvx/Freeware.zip Yep works fine. You could have made the file smaller if you had excluded the zip file & compacted only the text files. Yes, but as promised, I included everything that was in your original file. Including the older files in the zip inside the zip. PS Did you ever figure out why your .zip was much larger ? []'s Thanks Nope. First time I've ever had the need to compact files so used WinRAR & followed my nose. -- Regards wasbit |
#97
|
|||
|
|||
Photo editor
wasbit wrote:
Sorry Andy, if there's no GUI then I'm lost. They do say how to host a static site https://help.pythonanywhere.com/pages/hosting-a-static-site I tried that, and placed an index.html file under the static folder and it works nicely http://andyburns.pythonanywhere.com Probably jumping the gun but I also have to make sure that no-one else can alter or add files. Only you (with your username/password) should be able to edit anything |
#98
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... wasbit wrote: Sorry Andy, if there's no GUI then I'm lost. They do say how to host a static site https://help.pythonanywhere.com/pages/hosting-a-static-site I tried that, and placed an index.html file under the static folder and it works nicely http://andyburns.pythonanywhere.com Probably jumping the gun but I also have to make sure that no-one else can alter or add files. Only you (with your username/password) should be able to edit anything Ok Andy, I see your text file. Does this work? - https://www.pythonanywhere.com/user/...Freeware_lists -- Regards wasbit |
#99
|
|||
|
|||
Photo editor
wasbit wrote:
Does this work? https://www.pythonanywhere.com/user/...Freeware_lists No, but only *you can get to the /user/wasbit/files/home path, you should be aiming for people to use http://wasbit.pythonanywhere.com/ In the "web" section of dashboard, you should see the first two entries and need to add the third one /static/ /home/wasbit/mysite/static /media/ /home/wasbit/mysite/media / /home/wasbit/mysite/static depends if you left the name as "mysite" or renamed it Then your files need to go in https://www.pythonanywhere.com/user/.../mysite/static again depending on whether or not you renamed "mysite" create an index.html in there that links to your other text files in there |
#100
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... wasbit wrote: Does this work? https://www.pythonanywhere.com/user/...Freeware_lists No, but only *you can get to the /user/wasbit/files/home path, you should be aiming for people to use http://wasbit.pythonanywhere.com/ In the "web" section of dashboard, you should see the first two entries and need to add the third one /static/ /home/wasbit/mysite/static /media/ /home/wasbit/mysite/media / /home/wasbit/mysite/static depends if you left the name as "mysite" or renamed it Then your files need to go in https://www.pythonanywhere.com/user/.../mysite/static again depending on whether or not you renamed "mysite" create an index.html in there that links to your other text files in there I'm obviously doing something wrong. mysite = Freeware_lists //home/wasbit/Freeware_lists/static Created an index file but don't know how to populate it -- Regards wasbit |
#101
|
|||
|
|||
Photo editor
wasbit wrote:
I'm obviously doing something wrong. mysite = Freeware_lists So your index.html file and your various freeware.txt files should be within https://www.pythonanywhere.com/user/wasbit/files/home/wasbit/Freeware_lists/static right? I do now see a blank (error) page at http://wasbit.pythonanywhere.com so you're doing something (nearly) right! Did you add the path for the "/" URL? when logged in, go to the Web section of the dashboard scroll down to the section named "Static files" where it says "Enter URL" type / and click the tick where it says "Enter path" type /home/wasbit/Freeware_lists/static and click the tick then scroll back to the top and click the green reload button. Created an index file but don't know how to populate it Within the "Files" browser just click on it, it will take you to a text editor |
#102
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... wasbit wrote: I'm obviously doing something wrong. mysite = Freeware_lists So your index.html file and your various freeware.txt files should be within https://www.pythonanywhere.com/user/wasbit/files/home/wasbit/Freeware_lists/static right? I do now see a blank (error) page at http://wasbit.pythonanywhere.com so you're doing something (nearly) right! Did you add the path for the "/" URL? when logged in, go to the Web section of the dashboard scroll down to the section named "Static files" where it says "Enter URL" type / and click the tick where it says "Enter path" type /home/wasbit/Freeware_lists/static and click the tick then scroll back to the top and click the green reload button. Created an index file but don't know how to populate it Within the "Files" browser just click on it, it will take you to a text editor Deleted Freeware_lists & restarted with mysite http://wasbit.pythonanywhere.com takes me to a django page that says, "The install worked successfully! Congratulations! You are seeing this page because DEBUG=True is in your settings file and you have not configured any URLs." So in Mysite/settings.py I changed DEBUG to False saved the file, reloaded wasbit.pythonanywhere.com & then get a Not Found page Web tab/static files = static/ /home/wasbit/mysite/static media/ /home/wasbit/mysite/media / /home/wasbit/mysite/static Directories = .local/ ..virtualenvs/ Freeware_lists/ mysite/ media/ mysite/ static/ Static files = 6 freeware text files & 1 index.html file -- Regards wasbit |
#103
|
|||
|
|||
Photo editor
wasbit wrote:
Directories = .local/ .virtualenvs/ Freeware_lists/ mysite/ media/ mysite/ static/ Static files = 6 freeware text files & 1 index.html file Are those files in the correct folder? They want to be in /home/wasbit/mysite/static not /home/wasbit/static |
#104
|
|||
|
|||
Photo editor
"Andy Burns" wrote in message
... wasbit wrote: Directories = .local/ .virtualenvs/ Freeware_lists/ mysite/ media/ mysite/ static/ Static files = 6 freeware text files & 1 index.html file Are those files in the correct folder? They want to be in /home/wasbit/mysite/static not /home/wasbit/static yes. /home/wasbit/mysite/static |
#105
|
|||
|
|||
Photo editor
Andy Burns wrote:
Are those files in the correct folder? If you don't get it working from there, can I suggest to wipe and simplify the folder structure ... Go into "files" and delete every single file and every single folder Go into "web" and at the bottom click the red "delete web app" button then click "add new web app", next, manual config, python 3.7, next Add back the static files path like before, but simply with / = /home/wasbit then click the green reload Then go back to files, and create your index.html file directly in /home/wasbit and upload your freeware text files there too. sorted ... |
Thread Tools | |
Display Modes | Rate This Thread |
|
|