OVER 10,000 People Join Every Week! FREE SIGN-UP! CLICK HERE!

2007-09-15 Thread dating the right mate
OVER 10,000 People Join Every Week! FREE SIGN-UP! CLICK HERE! http://www.blpurl.com/al42 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread James Bennett
On 9/15/07, akonsu <[EMAIL PROTECTED]> wrote: > in my object_detail view i need to emit links to the previous and next > objects in the object list which invoked this detail view. has anyone > done this? any advice? If the objects are ordered by a DateField or DateTimeField, each one will have

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread r_f_d
in that case I cannot be of assistance, I do not use them. -richard On Sep 15, 7:35 pm, akonsu <[EMAIL PROTECTED]> wrote: > sorry i was not clear. i am using django's generic views > infrastructure. django.views.generic.list_detail.object_detail > >

Re: two questions about data model

2007-09-15 Thread gt7658b
Thank you, guys. for the charfield question, what I am trying to modify is the backend. So I need to change django.contrib.admin.views.main.add_stage? and also change_stage function? I don't know how to change that function. Is there a way to do it during model definition? Thanks, Harry On

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread akonsu
sorry i was not clear. i am using django's generic views infrastructure. django.views.generic.list_detail.object_detail http://www.djangoproject.com/documentation/generic_views/#django-views-generic-list-detail-object-list konstantin On Sep 15, 8:06 pm, r_f_d <[EMAIL PROTECTED]> wrote: > are

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread r_f_d
are you using django Generic Views or are you using the word to imply non-special views (i.e. you have a number of views just like this.) -richard On Sep 15, 6:38 pm, akonsu <[EMAIL PROTECTED]> wrote: > his is my understanding of the problem: > > there are two genric views: list view and detail

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread akonsu
his is my understanding of the problem: there are two genric views: list view and detail view. the template invoked from the former gets the queryset in the context, and the template invoked from the latter gets the object in the context. note that the latter does not get the queryset, just a

Obtaining newforms field values in a template

2007-09-15 Thread [EMAIL PROTECTED]
Hello all, I'm trying to display the initial/bound value of a field in a template by addressing it directly. I can't seem to find a consistent way of doing so, however; apparently I need to call the form if it is an initial, unbound value, and I can call the field itself if it has been bound.

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread r_f_d
I do not understand how the sequence changes, if the original list is based on a filtered quesryset, couldn't you use the same filter and then what I suggested, i.e. original query foo.objects.filter(bar = 'foobar') next: foo.objects.filter(Q(bar = 'foobar') & Q(id > initial_id)).order_by(id)

Re: concatenating querysets

2007-09-15 Thread Collin Grady
You're going about it the wrong way - you should be combining all the Q objects into one, then just filter with that - it'll do all the queries at once, and give you one queryset back :) --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: two questions about data model

2007-09-15 Thread r_f_d
for the charfield there is a max_length, but for what you are trying to do, you need to set this in the form widget. Take a look at newforms documentation but to point you in the right direction you need to do something like: where f is your form f.base_fields['FIELDNAME'].widget.attrs = {'size'

Re: Setting "blank" to one Field?

2007-09-15 Thread Collin Grady
There is no such thing as blank, especially on a ForeignKey. blank=True has absolutely nothing to do with the database, as the documentation for it clearly states :) It merely makes it so you can give it no value in form validation, like in admin.

Re: Problem with generic views (404)

2007-09-15 Thread Collin Grady
Do you actually have any Abbreviation objects? If you don't tell the view to allow empty results, it'll 404 if it has nothing to show :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread akonsu
thanks, yes this would work if the list in the objects_list view always contained the same sequence as the database. the problem is that the list can be arbitrary. i need to get the previous and the next items from the list and django does not give me anything in the template context but the

Re: Sign Up button

2007-09-15 Thread Collin Grady
You can't use a form button - just use a link --~--~-~--~~~---~--~~ 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,

Re: how to link to previous and next objects in object_detail view ?

2007-09-15 Thread r_f_d
I have not tried it with django, so I cannot guarantee this will work, however if I understand what you are attempting I was showing an model instance in a view and needed to get the next one by pk I would probably do: model.objects.filter(pk > current_model_instance_id).order_by(id)[:1]

Re: Reinstalled OS X... what do I need to reinstall?

2007-09-15 Thread [EMAIL PROTECTED]
Sort of. It's not django-specific; you can do it for any or all of your files when reinstalling: http://docs.info.apple.com/article.html?artnum=151641 Derek On Sep 14, 7:26 pm, "Austin Govella" <[EMAIL PROTECTED]> wrote: > I've done more poking about. > > Django is totally gone and MySQL isn't

Sign Up button

2007-09-15 Thread eyscooby
hello I have created a login page that looks like the admin page, and I have it working, so that when I sign in, it takes me to the next page I want. I would like now to create another button that would direct the user to a sign up page. My current login button is.. I did not create that,

Re: two questions about data model

2007-09-15 Thread Alex Koshelev
Thereis no `length` argument in Field constructor. Don't use it. Your User already has imagefiel_set attribute, so you have to define another related name for imagefile manager. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

how to link to previous and next objects in object_detail view ?

2007-09-15 Thread akonsu
hello, in my object_detail view i need to emit links to the previous and next objects in the object list which invoked this detail view. has anyone done this? any advice? thanks konstantin --~--~-~--~~~---~--~~ You received this message because you are

two questions about data model

2007-09-15 Thread Hai Dong
Hello: I am trying to control the html display size of a CharField using length keyword. However, I got the following error when doing syncdb __init__() got an unexpected keyword argument 'length' I am using django svn release. I didn't find length keyword in django document, but learned it

FRee E-Books

2007-09-15 Thread [EMAIL PROTECTED]
www.ebooks.adrianhosting.com --~--~-~--~~~---~--~~ 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

Bond car tops list of cool brands

2007-09-15 Thread Juicy Hilton
Aston Martin tops cool brands list *The James Bond effect has

Problem with generic views (404)

2007-09-15 Thread Florian Lindner
Hello, I have an problem using generic views. My settings.py has set: TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source', ) TEMPLATE_DIRS = ("/home/florian/xgm/templates/", ) I have an app

Make money to share photos

2007-09-15 Thread kabii
Make money to share photos Do you want to make money to post photos from internet.then just move on to http://goodtolove.com and start posting.They will pay their 50% adsense revenue with you...Then what are you waiting for just start posting photos in http://goodtolove.com.

periweproiqweopriwiqopwripwoririopwri

2007-09-15 Thread Sims
http://www.spende-per-klick-wwf.wg.am/ http://www.martin-stosch-superstar.wg.am/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to