Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-12 Thread Adrian Holovaty
On 11/3/06, RajeshD <[EMAIL PROTECTED]> wrote: > {% ifequal forloop.counter "1" %} > -- Insert code here to render the first blog entry --- > {% else %} >-- code for the rest of the blog entries --- > {% endifequal %} Note that you should never have to do this: {% ifequal

How do I display an exception's argument as a message in Django's admin?

2006-11-12 Thread binberati
Hi, How do I display an exception's argument as a message in Django's admin? I want the exception's argument to be displayed as an error message at the top of the add stage - instead of having the exception argument displayed at the debug page. Furthermore, I would like to add an error message

Re: Django, RDF & XUL

2006-11-12 Thread binberati
Interesting indeed! Not that comparisons always make sense, but Django seems to be far behind Rails in this respect. See for example http://www.activerdf.org/. Except for some posts by Bill de hÓra, RDF support did not get a lot of attention. Good you're here Bill... Previously, I had some

Re: User/request.user confusion

2006-11-12 Thread [EMAIL PROTECTED]
Thanks, I'll try updating. I think there's been some pagination changes I want to try anyway. And I apologize for my overuse of the word "serious" in my preceeding post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: OperationError at /admin using apache2/fcgi

2006-11-12 Thread Charlie La Mothe
Never mind.. I fixed my own problem. For those who are interested, I added the whole path to my database filename in settings.py. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

OperationError at /admin using apache2/fcgi

2006-11-12 Thread Charlie La Mothe
Hi! I tried submitting this as a ticket via code.djangoproject.com, but it regarded it a spam everytime I tried to submit it.. I changed it around a bit, but I couldn't get past the spam protection. So here's my problem. I created a brand new project, enabled the Admin entry in urls, added

Re: Creating one call for most recent entry, and another call for the restI have just set up a blog using the helpful tutorial over at

2006-11-12 Thread Andy
Rajesh, I added in the counter and it popped out "1" for the first entry, so I am unsure why your method didn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: django admin : "unique" field option error with models.BooleanField

2006-11-12 Thread Nathan R. Yergler
By definition there are only two possible values for a BooleanField: True and False. And if you add the unique=True constraint (which says each row must be unique), well, two is all you get. Maybe unique=True isn't exactly what you want? Nathan On Sun, 2006-11-12 at 02:41 -0800, david83

Re: newbie question about using javascript to handle vars in template..

2006-11-12 Thread Igor Guerrero Fonseca
I think that you need to do some: render_to_response to that *.js file Because Django is not replacing the *.js Django is replacing the *.html file > in my template file, there's a var which i can use {{var1}} to get its > value. and if i put the code > > > document.write({{var1}}); > > >

Re: Login redirect

2006-11-12 Thread tomass
Sorry, too quick off the mark there. Seems exactly what I need can be found here (basically just set up my own login/logout mechanism): http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests Thanks, Tom --~--~-~--~~~---~--~~

Drop down not displaying foreign key values

2006-11-12 Thread jeffhg58
Hi, I am relatively new with Django. With the admin interface I have a main table with foreign key table to supporting files. When I try and add a new record, the drop down field is only displaying the value of Status Object instead of the value of the Status field in the supporting table. Not

django admin : "unique" field option error with models.BooleanField

2006-11-12 Thread david83
Hi, I have created my model with : uniquechoice = models.BooleanField("uniquechoice", unique=True) In django admin interface, I can insert 2 items with uniquechoice checked without dango admin send me error message. How to solve this? --~--~-~--~~~---~--~~

select_related() and the number of queries executed

2006-11-12 Thread firsm
Hello, I'm trying to use select_related() with a OneToOneField. But I'm worried about the number of queries it executes. From the django documentation: select_related(): "[...] selecting that additional related-object data when it executes its query [...]". So when I append select_related() to a

newbie question about using javascript to handle vars in template..

2006-11-12 Thread pength
in my template file, there's a var which i can use {{var1}} to get its value. and if i put the code document.write({{var1}}); DIRECTLY in my template file, it's OK, the var1's value appears in my .html file. but if I use in template file, and then in my.js, write document.write({{var1}});

How do I display an exception's argument as a message in Django's admin?

2006-11-12 Thread binberati
Hi, How do I display an exception's argument as a message in Django's admin? I want the exception's argument to be displayed as an error message at the top of the add stage - instead of having the exception argument displayed at the debug page. Furthermore, I would like to add an error message

Re: Django Gebruikers Groep

2006-11-12 Thread Masida
Goed idee, ik heb ook interesse! Is er toevallig al een Nederlandstalige Django website? Voor Rails weet ik dat er al wel een aantal alternatieven zijn... Groeten, - Matthias baasbartels schreef: > Aardig om te zien dat er interesse is. Als antwoord op de vraag van > Franklin: heel precies

Login redirect

2006-11-12 Thread tomass
Hi Folks, I'd like to be able to log users in based on accounts in Django and then redirect them to a specific page after they've logged in. I'd also like to be able to do a similar thing for logouts. Can anyone help me out with this... Couldn't quite make sense of it from the documentation,

Re: unable to use Custom Manager

2006-11-12 Thread doubtintom
I have exactly the same question, Picio. If I find an answer before this group does, I'll let you know. Please do the same. Thanks. Tom Miller --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Django Gebruikers Groep

2006-11-12 Thread baasbartels
Aardig om te zien dat er interesse is. Als antwoord op de vraag van Franklin: heel precies heb ik het ook nog niet voor ogen, maar mijn gedachte kwam vooral voort uit het feit dat ik best zo nu en dan wat aan Django wil doen dat niet direct mijn probleem oplost maar gewoon het hele product ten

Re: Retreiveing a QSet from a Parent Table

2006-11-12 Thread MerMer
Thanks Zac, that's exactly what I needed. MerMer --~--~-~--~~~---~--~~ 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 from this

Admin Customization - Auto-Selected Foreign Keys

2006-11-12 Thread dcrookston
Hello everyone. Is there a way to make it so that when I go to create a new item in the admin, my list of foreign options is pre-selected? This is hard to explain so I grabbed a screenshot of what I want: http://dcrookston.com/admin_example.jpg Note the list of minerals at the bottom. I had

Re: My own auth backend

2006-11-12 Thread Andrew Degtiariov
> Try to write my own backend authenticate function, but users from> anothe table can not login. What can it be? Any suggestions? I hope somebody use custom backend authentication? Please, do notignore my letters. :) I have used middleware for this purposes. It is last in MIDDLEWARE_CLASSES list

Re: Django Gebruikers Groep

2006-11-12 Thread jelle
+1 goed plan! een annual meeting zou ook een plan kunnen zijn. --~--~-~--~~~---~--~~ 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

Re: Django Gebruikers Groep

2006-11-12 Thread Guyon Morée
ja ik wil! --~--~-~--~~~---~--~~ 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 from this group, send email to [EMAIL PROTECTED]

Re: Django Gebruikers Groep

2006-11-12 Thread Fred
Me too, count me in. +1 Eh. Ik ook :-) Fred. --~--~-~--~~~---~--~~ 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 from this

Re: Django Gebruikers Groep

2006-11-12 Thread Franklin Kingma
Ik ben benieuwd wat je precies voor ogen hebt, maar op zich :) +1 > Mijn concrete vraag is: zijn er Nederlandse (of eventueel Vlaamse) > Django gebruikers die geinteresseerd zouden zijn om eens te kijken of > we een Nederlandse/nederlands-talige Django Gebruikers Groep van de > grond kunnen

one to many and custom form

2006-11-12 Thread flynnguy
I'm working on a program to keep track of recipes. Thus I have two main tables, a recipe table and an ingredients table. They look roughly like this: (some code taken out for conciseness) class Recipe(models.Model): recipe_name = models.CharField(maxlength=100) directions =

Re: have mltiple different models ForeignKey the same model and still conveniently get all the data from all other models?

2006-11-12 Thread Ivan Sagalaev
> class Container(models.Model): > # This is my container model. It will later be displayed as its > # title and a list of *Thing instances which all are formatted > # in a different fashion. > # ofc each Container can contain any number of any *Thing model > # instance >

Re: Django Gebruikers Groep

2006-11-12 Thread Perica Zivkovic
doen! On 11/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > +1 > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to