Recently, I have become increasingly familiar with Django. I have a new project that I am working on that will be using Python for a desktop application. Is it possible to use the Django ORM in a desktop application? Or should I just go with something like SQLAlchemy?
                +2 
                A: 
                
                
              
            Yes it is. The Commonsense Computing Project at the MIT media lab does that for ConceptNet, a semantic network. You can get the source here: http://pypi.python.org/pypi/ConceptNet/4.0b3
                  Andrew Farrell
                   2009-07-30 14:04:29
                
              
                +6 
                A: 
                
                
              
            The Django people are sensible people with a philosophy of decoupling things. So yes, in theory you should be perfectly able to use Django's ORM in a standalone application.
Here's one guide I found: Django ORM as a standalone component.
                  Alexander Ljungberg
                   2009-07-30 14:05:39
                
              
                +4 
                A: 
                
                
              I would suggest using SQLAlchemy and a declarative layer on top of it such as Elixir if you prefer a Django-like syntax.
                  jdriscoll
                   2009-07-30 14:07:59
                
              Also SQLAlchemy exposes a little more of the SQL design, making it a tiny bit easier to use 3rd party reporting tools.
                  S.Lott
                   2009-07-30 14:09:27
                
                
                A: 
                
                
              
            I would suggest another ORM for a desktop application maybe SQLAlchemy or SQLObject. It i possible to use the django ORM but I think other ORM are a better ones if you are going to use them standalone.
                  Ferran
                   2009-07-31 07:19:32