Re: Using django ORM from web browser and from command line apps

2011-06-22 Thread bruno.desthuilli...@gmail.com
On Jun 22, 2:21 am, News123 wrote: > Out of curiousity: Do you know whether the imports would be executed for > each potential command as soon as I call manage.py or only > 'on demand'? Why would you care ? Just importing the module shouldn't have any side effect. -- http://mail.python.org/mailm

Re: Using django ORM from web browser and from command line apps

2011-06-21 Thread News123
On 06/22/2011 03:08 AM, Ian Kelly wrote: > On Tue, Jun 21, 2011 at 6:21 PM, News123 wrote: >> Out of curiousity: Do you know whether the imports would be executed for >> each potential command as soon as I call manage.py or only >> 'on demand'? > > Off the top of my head, I don't know. Never min

Re: Using django ORM from web browser and from command line apps

2011-06-21 Thread Ian Kelly
On Tue, Jun 21, 2011 at 6:21 PM, News123 wrote: > Out of curiousity: Do you know whether the imports would be executed for > each potential command as soon as I call manage.py or only > 'on demand'? Off the top of my head, I don't know. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using django ORM from web browser and from command line apps

2011-06-21 Thread News123
Hi Ian, On 06/22/2011 02:09 AM, Ian Kelly wrote: > On Tue, Jun 21, 2011 at 5:39 PM, News123 wrote: >> I'm having a django browser application. >> >> There's certain administrative tasks, that I'd like to perform from the >> command line (cronjob or manually). > It sounds like you probably want a

Re: Using django ORM from web browser and from command line apps

2011-06-21 Thread Ian Kelly
On Tue, Jun 21, 2011 at 5:39 PM, News123 wrote: > Hi, > > I'm having a django browser application. > > There's certain administrative tasks, that I'd like to perform from the > command line (cronjob or manually). > As these scripts might be huge and might consume quite some memory I'd > prefer, th