Re: duplicate entry in django

2013-09-08 Thread Laurent Meunier
On 08/09/2013 04:40, Harjot Mann wrote: On Wed, Sep 4, 2013 at 10:42 AM, Laurent Meunier wrote: Can you show use the source code of the view where you create your entry in the database? Sure. Here is the link to code: http://tny.cz/09090f4c Thanks for the link. Harjot is right, you are

Re: Greyed out models in Django Admin

2013-09-06 Thread Laurent Meunier
his group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_

Re: duplicate entry in django

2013-09-03 Thread Laurent Meunier
the database? -- Laurent Meunier -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Re: A quick Question about ManyRelatedManager.

2013-08-30 Thread Laurent Meunier
ers in the relationship, use something like `self.users.all()` def __unicode__(self): for user in self.users.all(): # do whatever you want with the `user` object username = user.username -- Laurent Meunier -- You received this message because you are subscribed to the Goo

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Laurent Meunier
ue of DATABASES['default']['ENGINE'] in your settings.py? I think you have entered only 'sqlite3', but django wants you to enter the full path to the module (ie: 'django.db.backends.sqlite3'). Best regards, -- Laurent Meunier -- You received this message be

Re: Get a list into request.POST

2013-08-23 Thread Laurent Meunier
e the json POSTed string to a list of dict. Javascript: var s = JSON.stringify([{'que':1,'ans':3},{'que':1,'ans':2},{'que':4,'ans':5},{'que':2,'ans':4}]); $.ajax({ url:'/someurl/', type:'POST'

Re: Invalid Syntax - All day long

2013-08-22 Thread Laurent Meunier
rgot to add a comma after the two single quotes. You should be something like this: urlpatterns = patterns('', Also, you need to import 'admin' if you want to use 'admin.site.url'. from django.contrib import admin Best regards, -- Laurent Meunier -- You receive

Re: Using django.contrib.auth...

2013-08-19 Thread Laurent Meunier
a datafile, don't forget to set the user field: mydatafile.user = request.user And then you can filter datafiles: Datafile.objects.filter(user=request.user) -- Laurent Meunier -- You received this message because you are subscribed to the Google Groups "Django users" group. To un

Re: Subtitle upload images

2013-08-15 Thread Laurent Meunier
he last. And then, in your django view, you have to use request.POST['the_unique_name_attribute_for_that_photo'] to get the legend for a particular photo. -- Laurent Meunier -- You received this message because you are subscribed to the Google Groups "Django users" g

Re: How do i set div dynamically in template?

2013-03-08 Thread Laurent Meunier
/dev/ref/templates/builtins/#for -- Laurent Meunier -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To po

Re: How to count objects for each date in django.views.generic.date_based.archive_index?

2009-05-25 Thread Laurent Meunier
On Fri, 22 May 2009 18:28:57 -0700 (PDT) Don Spaulding wrote: > > > > On May 22, 8:16 pm, Don Spaulding wrote: > > On May 22, 1:13 pm, Laurent Meunier wrote: > > > > > > > > > Hi list! > > > > > I'm looking for a way to have

How to count objects for each date in django.views.generic.date_based.archive_index?

2009-05-22 Thread Laurent Meunier
.fetchall(): y = (row[0], row[1]) result_list.append(y) return result_list Is there a better and more elegant way to do this? I would like to avoid raw sql as far as possible. Thanks. -- Laurent Meunier --~--~-~--~~~---~--~~ You recei