|
I've been using Django more and more, but I haven't deployed anything yet. Something that has me confused is I created a ImageField in a model, but upon reading documentation I saw something that said Django can't actually serve media? So does that mean any image I add to the sqlite db won't actually be grabbable by a API? Thanks and sorry for the dumb question.
|
# ¿ May 4, 2022 14:33 |
|
|
# ¿ May 15, 2024 15:46 |
|
Perfect, thank you for the help. I'm not going to push this little app live and it'l llive on my home network so a CDN might be a bit excessive, but will definitely use that built in view tool. Thank you!
|
# ¿ May 4, 2022 16:00 |
|
So what i'm doing is just using Django as a API to get 1 piece of text and then a image to use for a background, of which all this information (and the images) are added only by the admin using Django Admin; so I don't think I need to worry about that stuff right? I'm not worried if someone gets in and there's nothing private, although I guess if I ever want to publically expose the API then I would need to worry. I guess I could offload the images to a CDN and then just hold onto the link as a URL in the API which would probably make stuff easier. I'm guessing there's no free CDN's for like ~200 images tho lol. I guess my sub question is, where can I host this API on the web if I wanted to for "free" or cheap? It has maybe 200 objects it'll expose on the API, if that makes sense. Thanks for all the help.
|
# ¿ May 4, 2022 16:14 |
|
Sweet thank you both!
|
# ¿ May 4, 2022 17:43 |
|
I ended up using PythonAnywhere, didn't know you could lamba that though. Maybe i'll move it to that.
|
# ¿ May 5, 2022 14:47 |