Re: Selecting from too big table - SOLVED

2007-04-06 Thread Gilhad
On Thursday 05 April 2007 21:24, James Bennett wrote: > On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: > > What do you think about the "spawning another Admin with (select) button" > > ? Is it the right way of doing things? > > That's what 'raw_id_adm

Re: Selecting from too big table

2007-04-05 Thread Gilhad
as usual, I have to keep users satisfied, have time with my family and there is so much of documentation, that I cannot read it all at once, never mentioning to remember all detail at the first reading ... I am trying, but I am not so fast as I was when I was young) -- Zdravi

Re: Selecting from too big table

2007-04-05 Thread Gilhad
On Thursday 05 April 2007 19:01, Jeremy Dunck wrote: > On 4/5/07, Gilhad <[EMAIL PROTECTED]> wrote: > ... > > > There is abour 10.000 songs in the table and nearly so schedulers. I need > > to somehow connect this together and help user to sellect the right Song > &g

Selecting from too big table

2007-04-05 Thread Gilhad
Or is there another, better way to do this? (Avoiding extra SQL request for each line of Scheduler list and still avoiding 10.000 lines long in Scheduler change) -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message becaus

Re: create/drop individual table

2007-04-05 Thread Gilhad
create/drop an individual table, > preferably not from the manage.py shell? > Thanks. > -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Admin - order ForeignKey by

2007-04-02 Thread Gilhad
TaMeR solved my problem. Thank for interest. (I needed class Meta: ordering = ['name'] ) -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Admin - order ForeignKey by - SOLVED

2007-04-02 Thread Gilhad
On Monday 02 April 2007 09:20, TaMeR wrote: > On Mar 31, 7:14 am, Gilhad <[EMAIL PROTECTED]> wrote: > > I have something like this: > > > > class Project(models.Model): > > name = models.CharField(maxlength=10) > > order = models.IntegerF

Admin - order ForeignKey by

2007-03-31 Thread Gilhad
entered, which is surely not too much descriptive, as many related Projects are entered at very different times) -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: permission denied from development server

2007-03-31 Thread Gilhad
"manage.py syncdb" works > fine, so it is not because of my setup or anything like that. i think. > > thanks > konstantin > > > -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are su

Re: admin utilites in front end view

2007-03-31 Thread Gilhad
rom admin part (I love them) in fronted view? I've > searched groups and posts seems to be talking about change list and > new version of admin part, but posts were from 2005-6. Any hints > appreciated. > > > -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~--

Re: Time length - Long and relative TimeField

2007-03-29 Thread Gilhad
> > > 240:00:00 (alternatively 10d 00:00:00) > > > > Does the timesince filter do what you require? > > If I understand correctly, gilhad wants to specify an interval. > > Possible solutions: use two PositiveIntegerFields to supply days > and/or

Re: Poll tutorial question

2007-03-29 Thread Gilhad
%s"' % (temp_dir,tempfile,new_tempfile)) |---|---|---|---|---os.system('mv "%s" "%s"' % (new_tempfile,tempfile)) |---comments = song_file.get_info_key('description') |---comment = "" So it is clear, what indenta

Time length - Long and relative TimeField

2007-03-28 Thread Gilhad
django? -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe

Re: Poll tutorial question

2007-03-28 Thread Gilhad
'class Admin:' should be indented only so much as ''question' and 'pub_date' is > class Admin: > pass > > NSTALLED_APPS = ( > 'django.contrib.auth', > 'django.contrib.contenttypes', > 'djan

Re: Problem with get_current_user via middleware - SOLVED

2007-03-27 Thread Gilhad
riable was not the same (comes from TWO different modules), so it got TWO different values depending on what way it was used. (and "Python threading.local() is NOT a singleton") So I used literally the same names in both places and everything works ... -- Zdravi Gilhad [EMA

Re: django admin ordering by last modified

2007-03-27 Thread Gilhad
ng consistant > with the 'lastname' and 'firstname' only. > > has anyone got a clue about this? > > thank you very much in advance. > I am afraid, that you want more than you can get. The model-api.txt in section ``ordering`` states on the end: Note that,

Re: Problem with get_current_user via middleware

2007-03-27 Thread Gilhad
On Tuesday 27 March 2007 10:28, Gilhad wrote: > > the default value is a callable, its not a value... I use exactly this > > and it work very well for me... > > I agree that there is duplicity (why specify a default if you override > > it in save() ), but that shouldn&

Re: Problem with get_current_user via middleware

2007-03-27 Thread Gilhad
ery call of 'process_request' is there one (and everytime the same) and for every call of 'get_current_user' is another one (and everytime the same). I just cannot understand it ... -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You rece

Problem with get_current_user via middleware

2007-03-26 Thread Gilhad
Vykon,self).save() I did some printing on the way: USER= gilhad get_current_user= get_current_user= the middleware look now this way: _thread_locals = local() def get_current_user(): print 'get_current_user=',_thread_locals return getattr(_thread_locals, 

Re: Administration features in user pages - SOLVED

2007-03-12 Thread Gilhad
n't know of any tutorial/doc that covers how the admin implements > filters, etc. When I wanted similar functionality on my user-visible pages > I just read the admin souce to see how it did it...all in all it wasn't too > tough to figure out. > > Karen > > On 3/12/07

Re: Administration features in user pages - newbie

2007-03-12 Thread Gilhad
ad the tutorial*.txt legacy_databases.txt design_philosophies.txt django-admin.txt db-api.txt and so on, but now I need to go directly to the point, or try to program it myself (which is against logic and phylosofy of django ...)... On Monday 12 March 2007 16:24, anders conbere wrote: > Gi

Re: Administration features in user pages - newbie

2007-03-12 Thread Gilhad
Is anywhere some simple tutorial, how to implement such features (filters, sorting, pagination) into my views? Or is the fastest way try to read and understand source of django/contrib/admin ? Thanks for pointing me, where I should continue with study ... -- Zdravi Gilhad

Re: ForeignKey fields in list_display

2007-03-11 Thread Gilhad
the problem disapeared ... maybe you can just try it ... -- Zdravi Gilhad [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: Django keeps growing, performance keeps dropping

2007-03-10 Thread gilhad
On Mar 7, 4:26 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > My site just keeps getting bigger and bigger, and the performance has > gotten excruciatingly slow. > ... > Problem is, I really don't know what to do about it, or even what I > need to be looking at, really. I've gone through a

Administration features in user pages - newbie

2007-03-10 Thread Gilhad
, then enjoyable for one screen) Is anywhere some simple tutorial, how to implement such features into my views? Or is the fastest way try to read and understand source of django/contrib/admin ? Thanks for pointing me, where I should continue with study ... -- Zdravi Gilhad [EMAIL