These are chat archives for django/django

20th
Jun 2017
:]
@elcolie
Jun 20 2017 03:09
@romantolkachyov I will get back to you as fast as I can. I have to swtich to another job. Please on hold with me
:]
@elcolie
Jun 20 2017 06:27
@SanskarSans http://www.django-rest-framework.org/api-guide/relations/#primarykeyrelatedfield
In your serializer uses PrimaryKeyRelatedField.
hardik Gajjar
@gajjar8055
Jun 20 2017 06:30
DecimalField(max_digits=9, decimal_places=6) is this good way to store lat long in MySQL
?
Roman Tolkachyov
@romantolkachyov
Jun 20 2017 06:54
@SanskarSans it is better to use generic view in your case
Nishant Suman
@Nishant23
Jun 20 2017 09:03
I have a sql query : select * from table_name where first_name like 'n'. How to write this using ORM??
Nishant Suman
@Nishant23
Jun 20 2017 09:10
like '___n__'
@cheng337002 No not this..
Chris Cheng
@cheng337002
Jun 20 2017 09:30
sorry, i can't find the method, maybe you can use regex like __iregex=r'^.{3}n' or raw sql?
Nishant Suman
@Nishant23
Jun 20 2017 09:31
okay. Thanks ..
Anish Shrestha
@annshress
Jun 20 2017 10:12
@gajjar8055 Have you ried FloatField()?
Abhinandan Panigrahi
@chrzrdx
Jun 20 2017 11:29
How can I get django-rest-framework-jwt to return tokens with expiry timestamp in milliseconds, and not seconds?
delirious44
@delirious44
Jun 20 2017 23:23
Is someone here ?
can somone help me
Kyle Mulka
@mulka
Jun 20 2017 23:24
@delirious44 just post your question. Someone will see it eventually
delirious44
@delirious44
Jun 20 2017 23:24
Well I have a specific question
See. Im making a website where you rate things
the like button is within a form that has the action to an url that i set up
the url has /<id>/up
for upvote
but see.. if the user knows some things and looks up the action at that form
can see his id , and just abuse and write the url
/<id>/up
everytime and make a ton of likes
how do i prevent that ?