2

Hp: having the possibility of running an application server with both a Py interpreter with Django and a PHP engine...

It would be possible to run a PHP script into a Django template?

Is it possible to implement such application server through Apache 2.0 mods?

How would the views and the template file look like?

4
  • ... why would you do this? Eek. Commented Mar 27, 2012 at 14:37
  • I am traslating a beta project from PHP to Python. I would need a double implementation to switch the db talbes' model from the old one to the new one. Commented Mar 27, 2012 at 16:03
  • 2
    You don't need any such implementation. Just write your Django models to interface with the tables as they exist now. Commented Mar 27, 2012 at 16:06
  • old tables are really a mess. wrong types, utf-8 collation. So I think I will make custom script to migrate these tables to solid 'Django compliant' tables. I have already created the model, but the old data doesn't fit into new tables. So I though to use the data I cannot migrate into separate php pages, inside the django template. That's what I was asking about. Commented Mar 27, 2012 at 16:19

1 Answer 1

6

It is awful idea, but you can check this project.

Sign up to request clarification or add additional context in comments.

1 Comment

:D the project looks like a weird interbreeding

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.