Python Upload - 405

I am trying to make it so that you can upload files to a folder in my website, but i get a 405 HTTP error, help?


Try uploading this:
Untitled

Hey,

You cannot upload assets to static sites.

if i add a package.json file the logs keep loading and loading and the website is stuck on “starting”

I would recommend remixing the express starter and start from there, if you want to do Node. Please note that for Glitch to detect a Python project, you need a requirements.txt file.

2 Likes

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at /opt/watcher/source/app-picker.ts:107:39
at ChildProcess.exithandler (child_process.js:285:7)
at ChildProcess.emit (events.js:189:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

What shall i add to the requirements.txt?

I would recommend that you take some time to learn python.

i am using a tutorial.

Ok, well I would recommend that you learn about Django, its python on the web.

2 Likes

I can’t download stuff

What do you mean?

as

You are doing this on Glitch right, not your personal machine?

I am doing this on glitch.
There’s literally no way to use django without installing it

Why not just remix a Django starter?

i just wanna use python

You have to learn python to use python you know.

i have a team of coders who use python you know.

Ok, well I guess you should learn python then?