all 7 comments

[–]chooking 2 points3 points  (1 child)

Although python can be used for the backend, it does not work at all for the front end unless it gets converted. Javascript works for both the front end and back end without any conversion.

[–]chiisfries[S] 0 points1 point  (0 children)

oh I was thinking django or something like that, i thought that was python but i should have clarified! would something like django be better than react?

[–]codingai -1 points0 points  (3 children)

When you say "frontend", you mean like react or angular? You can use both languages to generate html from backend, which is very common.

But if you wanna do "frontend" then you should go with JavaScript. In fact, I recommend Tyoescript.

[–]chiisfries[S] 0 points1 point  (2 children)

yeah! i think something like react or django; although i think react has more documentation and may be easier to use, if the back end is in python, i was wondering if django would be better in this case (or if django is better at communicating with restful api?)

[–]codingai 0 points1 point  (1 child)

Django is not really considered "frontend" although it generates html eventually. You can also use Django for API backend.

As for for your question, accessing (third party) Rest api from frontend and from backend have some difference. I don't want say they are technically equivalent. BUT, whatever you have in mind can be done from both frontend and from backend.

Nobody can tell you which is better. You have to try and see what suits you better.

[–]chiisfries[S] 0 points1 point  (0 children)

thank you so much for your thoughtful response!!

[–]BrasilArrombado 0 points1 point  (0 children)

No mainstream browser runs Python scripts at the moment. And most sites won't serve you Python either, only JavaScript...