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
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
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
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
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
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
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,
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
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}});
>
>
>
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
--~--~-~--~~~---~--~~
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
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?
--~--~-~--~~~---~--~~
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
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}});
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
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
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,
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.
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
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
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
> 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
+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
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]
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
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
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 =
> 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
>
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
29 matches
Mail list logo