These are chat archives for django/django

24th
Apr 2017
Subha Bera
@subha-py
Apr 24 2017 06:33 UTC
Hi everyone,
Can anyone suggest a kickass networking book in python?
Erick Delfin
@Nifled
Apr 24 2017 08:57 UTC
Hey guys, I'm a big fan of the Django REST Framework, and since I didn't find cheat-sheet for reference, I decided to make my own.
Not advertising it by any means, I just made it to contribute to this awesome community.
Subha Bera
@subha-py
Apr 24 2017 09:03 UTC
@Nifled just checked it out. Good initiative :)
Erick Delfin
@Nifled
Apr 24 2017 09:04 UTC
@subha-py Thanks :smile: ! If anyone wants to contribute, I'm more than open to that. There's still lots of things that can be added
Subha Bera
@subha-py
Apr 24 2017 09:04 UTC
Okay will try to do some for sure.
Roel
@roelzkie15
Apr 24 2017 09:39 UTC
How do we format dateField in django template?
{{ item.date|date:'D d M Y' }} does not work for me and i dont know why or maybe because this is only applicable for datetimefield?
Erick Delfin
@Nifled
Apr 24 2017 09:54 UTC
@badcoder28 How about trying {{ item.date|date:'d M Y' }} ?
Erick Delfin
@Nifled
Apr 24 2017 10:01 UTC
Should work if you change your datefield object to a datetimefield
Pavel Grochal
@Darkless012
Apr 24 2017 12:55 UTC

@badcoder28 The problem has to be somewhere else. It should take dateField normally. Try using just {{ item.date }} and {{ item.date | date }}
```$ python manage.py shell

from django.template import defaultfilters as filters
from datetime import date
filters.date( date.today() )
u'April 24, 2017'
filters.date( date.today(), 'D d M Y' )
u'Mon 24 Apr 2017'
```

digaph
@digaph
Apr 24 2017 13:36 UTC
Hi all!
Upgrading a project from Django 1.9 to Django 1.10 and running into an issue that I cannot explain. I'm using Django's UUIDField on a model as primary_key.
In 1.9 this field always returned a UUID (both on model create as on model fetch)
In 1.10 this field only returns a UUID on fetch, after create it's a string. This breaks several unittests which currently assertEqual both model instances, they were similar in 1.9, they are no longer in 1.10.
backbenchersco
@backbenchersco
Apr 24 2017 13:43 UTC
Educhimp is looking for a python and based web developer with front-end skills.Would any of you be interested?
Send mail to educhimp@gmail.com
Our fb www.facebook.com/educhimp
MBijman
@MBijman
Apr 24 2017 15:04 UTC
@backbenchersco what is your location? is remote possible?
backbenchersco
@backbenchersco
Apr 24 2017 16:07 UTC
Yes it is
Mail me your profile