Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681384yYes and no.
You just need a text area in the browser, it's the taking that input, sanitising the hell out of it, executing it against python and returning the results part that gets complicated and provides direct code execution to the server that's the problem. -
@C0D4 that's exactly what I mean, I want to let the user do all the coding on the browser and once they submit it I can take that and try to run it, test it, whatever...
-
C0D4681384y@juanchdzl look at something like https://repl.it
Doing this on your own is asking for a compromised server in the wrong hands. -
@C0D4 That one looks good but I basically want to clone https://www.codewars.com/
but with just python challenges and a django backend -
You can code a transpiler to export the Python code to js and run in on the browser
-
@Afrographics that seems like a good idea, gonna do some research about it for sure
Related Rants
Is there a way to let a user write some python code on the browser and then run it and show the result? I want to make a coding challenges website using django but I don't know where to start
question
project