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
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_
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,
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
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
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'
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
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
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
/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
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
.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
12 matches
Mail list logo