Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #8144
| Date | 2011-06-22 01:39 +0200 |
|---|---|
| From | News123 <news1234@free.fr> |
| Newsgroups | comp.lang.python |
| Subject | Using django ORM from web browser and from command line apps |
| Message-ID | <4e012bc4$0$1555$426a74cc@news.free.fr> (permalink) |
| Organization | Guest of ProXad - France |
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, that they were not part of the normal application and would just consume memory during the administrative phase. I am not sure, whether this is a use case really being intended. I wanted to know whether there are any precautions to take if I do this. The one issue, that I could imagine is that Django (if I understood correctly) performs normally database transaction based an a http request. What would happen if I don't do anythong special in a script. Would the entire runtime of the script be considered a transaction? Are there any special commands that I have to use in order to indicate when a transaction starts / stops? Thanks in advance for suggestions. Please look also at a related question.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Using django ORM from web browser and from command line apps News123 <news1234@free.fr> - 2011-06-22 01:39 +0200
Re: Using django ORM from web browser and from command line apps Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-21 18:09 -0600
Re: Using django ORM from web browser and from command line apps News123 <news1234@free.fr> - 2011-06-22 02:21 +0200
Re: Using django ORM from web browser and from command line apps Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-21 19:08 -0600
Re: Using django ORM from web browser and from command line apps News123 <news1234@free.fr> - 2011-06-22 03:18 +0200
Re: Using django ORM from web browser and from command line apps "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-06-22 03:57 -0700
csiph-web