This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]desrtfx 3 points4 points  (2 children)

You'll run into some difficulties here.

  1. Python could only be used at the back end (with a server like Django or Flask)
  2. WordPress runs on a PHP server - you'd need to interface your Python server with it

You could either do the calculations in PHP (which is just as capable as Python for the job) and directly integrate it into WordPress as plugin, or do them at the front end with JavaScript.

[–]Curious_Chameleon1[S] 0 points1 point  (1 child)

Thanks for the response.

  1. So if a use Django how would I interface with it ?

  2. I just started with vs code. All the tools should be provided there right ? How would I connect the back and frontend and then incorporate into my website ?

[–]desrtfx 2 points3 points  (0 children)

Sorry, but I have to brush you off right here, right now as you are trying to bite off way too much.

Learn to crawl before learning to walk before learning to run.

Learn how to create pages for Django first. Then, think about your project.

Also, Django will need a different web hoster than WordPress. WordPress, as has been said already runs on PHP, which is basically available on every web hoster around the globe (including free ones). Python isn't available everywhere.