python - Using Django's Model API without having to *include* the full Django stack -


Currently one of my applications is using SQLAlchemy , but I consider the possibility of using I am Django Model API .

The Django 1.1.1 is about 3.6 megabytes of size, while SQLAlchemy is about 400 kilobytes (as reported by POPM - which basically has python install.py install / Install / code>).

I would like to use the Django model (to do so, other developers do not want to learn any other-ORm yet), but do not want to include 3.6 megabytes of material, most of which are not needed .

Itemprop = "text">

Django ORM is automatically usable - You can use "settings.configure ()" to set the database setting. He said, you have to snatch and repeat yourself, and you have to experiment with it so that you can actually strip how far I am convinced that you can contrib /, forms, template /, and perhaps many other unrelated pieces You can ditch. The ORM is definitely dependent on conf /, and the core / and the use / is likely to be as well. Through DB / *, some quick grips should clarify what has been imported.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -