There are many other options other than Django. However:
You can make your own SQL queries in Django. Here is the documentation for extra()
. extra()
lets you make extra SQL calls on top of the ORM.
If you want to make raw SQL queries, bypassing the ORM entirely, you can do so with django.db
. See this article for examples.
That said, other options aside from Django if you still want to use a framework:
- Turbogears
- Pylons
- Web2Py
- Zope3
- Plone/Zop2
See this list for a listing of more frameworks.
Now, if you don't want to use a ORM and just want o make SQL calls directly, Python also has the ability to interact with a database. See this page on the Python wiki.