Re: Is it possible to write generic module?

2017-03-27 Thread Det S. Pillner
, 2017 at 3:00:58 PM UTC+2, Avraham Serour wrote: > > yes, table name can a parameter to your function > > what do you mean by "import this table"? > > On Mon, Mar 27, 2017 at 3:41 PM, Det S. Pillner <silve...@gmail.com > > wrote: > >> Hi all, >>

Is it possible to write generic module?

2017-03-27 Thread Det S. Pillner
Hi all, I work on tools for my job based on Django 1.8.17. In different projects (with different databases) I use same routine to get some data (config data). My problem is: the way is every time the same: import model, get config data from database. The difference is: model name is in every

Re: use django logging from outside

2016-02-15 Thread Det S. Pillner
On Thursday, February 11, 2016 at 1:32:51 PM UTC+1, Det S. Pillner wrote: > > > > On Saturday, January 23, 2016 at 11:38:31 AM UTC+1, James Schneider wrote: >> >> >> On Jan 20, 2016 2:35 AM, "Det S. Pillner" <silve...@gmail.com> wrote: >> &g

Re: use django logging from outside

2016-02-11 Thread Det S. Pillner
On Saturday, January 23, 2016 at 11:38:31 AM UTC+1, James Schneider wrote: > > > On Jan 20, 2016 2:35 AM, "Det S. Pillner" <silve...@gmail.com > > wrote: > > > > Hi all, > > > > I work on a django project. I use very heavy logging in thi

use django logging from outside

2016-01-20 Thread Det S. Pillner
Hi all, I work on a django project. I use very heavy logging in this project. Some parts of code needs to start over a cron job outside of the django project. In this - I call it modules - I try to use my existing django logging config. Code execution displays no errors bud there are no

problem with runserver

2014-11-17 Thread Det S. Pillner
Hi, yes I know this topic exist, bud: I follow this book: http://www.djangobook.com/en and I can do all the nice things up to the database chapter. I use SVN to save my data and to transfer to other computers. I'm wondering: it does not working on the 'new' machine. Every time I got error