python sql query in django

Diez B. Roggisch deets at nospam.web.de
Tue Feb 24 13:36:28 EST 2009


> 
> Thanks for all your suggestions.  From what I've experienced in Django
> and now that I know a little more about how Python functions, I will
> probably use a combination of PHP and Django, instead of trying to get
> Python to do the web portion of my project.  Thanks again!

That sounds like the worst idea. Django's ORM is good when used from 
within django, because of all the additional goodies like the admin 
interface.

But if you are going to do the webfrontend using PHP, what part is left 
for django? If it's only the ORM (for whatever you still use that 
anyway), there are better alternatives - SQLAlchemy, and SQLObject, for 
Python. They are more powerful and not interwoven with django.


If you are going to hand-code the interface in PHP, I fail to see though 
why you don't do that in Django directly. You are not forced to use the 
Admin-interface.

Diez



More information about the Python-list mailing list