Dean
Dean

Reputation: 8065

PHP part in Python based website

I need to write a small addition to a Python+Django based website, hosted on Google Apps. Trouble is that I don't have any experience with Python.

The addition is pretty straight forward, it requires little database access So thought of 2 possible solution's:

  1. Quickly dive into Python and get it done with Python.
  2. Run PHP on Quercus and write this particular addition in PHP, then somehow combine it into the website as a dingle PHP page.

Edit: There is another option I thought of:

  1. Writing it in PHP and hosting it on an external server, embedding it in an iframe. The addition I am writing has no need to be SEO friendly, so an iframe will have no negative effect on the website.

What do you suggest?

Upvotes: 1

Views: 178

Answers (2)

Nick Johnson
Nick Johnson

Reputation: 101149

Quercus on App Engine runs on the Java runtime, while Python runs on, er, the Python runtime. While you can run one app with multiple runtimes, they have to be different major versions, which means that communication between them will be awkward - you'd have to make URLFetches between them.

I think you'll find it's far simpler to learn enough Python to make the changes. And trust me, you won't regret learning Python. ;)

Upvotes: 1

Paraita
Paraita

Reputation: 85

I am not sure about how you will run php on GAE since it only support Java and Python. I'd go with solution 1. Python isn't hard to apprehend, you should find ready-to-go code snippets in GAE documentation, and its Datastore doesn't seem too hard to use :D

there's a nice tutorial in GAE documentation: here

Upvotes: 2

Related Questions