Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8155

Re: using only the django ORM (DB access model) and nothing else.

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: using only the django ORM (DB access model) and nothing else.
Date 2011-06-21 21:02 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-00B024.21021121062011@news.panix.com> (permalink)
References <4e012e8d$0$23682$426a34cc@news.free.fr>

Show all headers | View raw


In article <4e012e8d$0$23682$426a34cc@news.free.fr>,
 News123 <news1234@free.fr> wrote:

> Hi,
> 
> I have a small application running on a host without web server and
> without any need for django except its ORM accessing data bases without
> explicitely writing sql queries.)

You would do much better to ask this question on the django mailing list 
(http://groups.google.com/group/django-users).


> I assume there's many libraries (SQL Alchemy or others), which could do
> this job. and which migh have less overhead than django.

Ugh.  I've played with SQL Alchemy a few times and every time I've run 
away screaming in the other direction.  I can see how it's useful if you 
need to be totally cross-platform, but, man, if that's what it takes to 
be cross platform, I'm happy being a MySQL bigot all day long.

> As I am already implementing a web server application with django on
> another host I wanted to use the same syntax / API for my non web
> application.
> 
> Now my question:
> 
> What would be the minimal setup required to use django orms and nothing
> else.

I don't see any reason you couldn't use the Model layer by itself, if 
you want to.  It pretty much stands on its own.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

using only the django ORM (DB access model) and nothing else. News123 <news1234@free.fr> - 2011-06-22 01:51 +0200
  Re: using only the django ORM (DB access model) and nothing else. News123 <news1234@free.fr> - 2011-06-22 02:42 +0200
    Re: using only the django ORM (DB access model) and nothing else. Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-21 19:04 -0600
      Re: using only the django ORM (DB access model) and nothing else. News123 <news1234@free.fr> - 2011-06-22 03:14 +0200
    Re: using only the django ORM (DB access model) and nothing else. News123 <news1234@free.fr> - 2011-06-22 03:10 +0200
  Re: using only the django ORM (DB access model) and nothing else. Roy Smith <roy@panix.com> - 2011-06-21 21:02 -0400
    Re: using only the django ORM (DB access model) and nothing else. News123 <news1234@free.fr> - 2011-06-22 03:16 +0200

csiph-web