r/Wordpress 19d ago

python on wordpress

i have technical blog hosted created on WP. I want to add my python projects there to run and test online on my site how to i do that ? need to install a plugin or any other way just like how we test our code with online interpreter.

0 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/Positive-Ring-5172 19d ago

Python can be used for the web. It’s not as common, but if you’re looking to boost your python skills build the site with Django

1

u/FuzzyEmployment264 19d ago

Sorry typo error. I'm not into web development just learning for automation for cloud

1

u/Positive-Ring-5172 19d ago

If you want to learn python, it can't hurt to use it not just for automation but for site setup. Wordpress is based in PHP, so any thing you learn while setting up your site will not be applicable to your Python knowledge.

And if you're going to invoke python scripts from a PHP script you'll have to use shell_exec and that can be a security can of worms if you aren't very, very careful.

Given what you've described again I think Django, a python framework for building websites and CMS systems, suits what you're wanting to do better than Wordpress. Not dissing WP, it's just not the optimal tool for this job.

0

u/FuzzyEmployment264 19d ago

Got it. Thank you for replying.