Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Django be used for non web apps?

I noticed in the main Django introductin they show a feature that maps python objects to the database. This doesn't strike me as being mutually exclusive with with development, is there any reason why this can't be used for non web apps? Is it easy to separate out?

like image 880
Leeks and Leaks Avatar asked Mar 27 '10 13:03

Leeks and Leaks


People also ask

Is Django only for web?

It suits any web application project With Django, you can tackle projects of any size and capacity, whether it's a simple website or a high-load web application. Why use Django for your project?

What can Django be used for?

Django is used for development of different types of websites, in particular, a highly customisable app, such as a social media website. Django is a free, open source, high-end framework written in the famously simple, flexible, and relatively easy-to-learn Python programming language.

Is Django used for apps?

As you can see, Django is used to make complex, large-scale web apps from Instagram to Firefox. The framework is both comprehensive and simple, although it does have its disadvantages.


1 Answers

The part you're mentioning is the ORM and yes, ORMs are useful besides web development. In theory you could use the Django ORM for non-web stuff. However this can be a bit complicated because it is not released separately so you'd have to extract the code yourself (or you have to include the whole django package).

There are a lot of other ORMs in Python that you can use standalone way easier. My favorite is SQLAlchemy (http://www.sqlalchemy.org/), but there are others like storm and SQLObject.

like image 188
Felix Schwarz Avatar answered Sep 29 '22 18:09

Felix Schwarz