These are chat archives for django/django

6th
Jan 2016
Gerald Eersteling
@geraldeersteling
Jan 06 2016 09:31
Happy (late) new year guys
rishu-18
@rishu-18
Jan 06 2016 10:50
how to get 'pk' of any model ..thanks
Kaushal Kumar
@kaushal087
Jan 06 2016 10:54
If pks arbh defualyt named id .
Try
Modelname.objects.get(id=givenid)
@rishu-18
rishu-18
@rishu-18
Jan 06 2016 11:05
no pk of django group model
group = Groups.objects.all()
this one
rishu-18
@rishu-18
Jan 06 2016 12:48
I have two group in Group model of django admin say namely 'a' and 'b'
now i am doing group = Group.objects.filter(name='a')
and now i want pk value for this model i.e 'a' it should be '1'
??
Saatvik Shah
@saatvikshah1994
Jan 06 2016 14:25
Hi, is it possible to read the names of files/directories inside a directory selected by a user?