What is the full testing toolkit any Python/Djang/JS developer?

2016-06-29 Thread Seti Volkylany
Now, I am using: factory-boy, selenium, nose, pytest and unittests. I have a plan use in future QUnit and Continuous Integration. May be it is enough? Who using yet tools? -- You received this message because you are subscribed to the Google Groups "Django users" group. T

"canonical" views.py in Django Unleashed book, Chapter 22

2016-06-29 Thread Malik Rumi
Although I love the book (so far) for its level of detail and addressing a LOT of issues I am currently dealing with, I have run across a problem. Specifically, the views.py and urls.py in the github repo are NOT the same as the snippets of views.py and urls.py in the book. Now, since I started

Re: Is this behavior with Meta Ordering and Group By expected?

2016-06-29 Thread eric conner
Thanks! I don't see how the link you provided justifies your point. I don't see anything in there saying that specifying an ordering will subsume group by statements. How did you know this was expected? But..in any case I'm happy to take your word for it. And thanks a bunch for the workarou

Re: Is this behavior with Meta Ordering and Group By expected?

2016-06-29 Thread Fabio C. Barrionuevo da Luz
Hi Eric. This is the expected behavior ( https://docs.djangoproject.com/en/dev/ref/models/options/#ordering ). If ordering is defined on model Meta, the ORDER BY SQL is included by default in all query. to avoid this behavior, you can use order_by() without parameters: eg: A.objects.order_by()

Is this behavior with Meta Ordering and Group By expected?

2016-06-29 Thread eric conner
Hello! I'm using Django 1.9.7, MySQL innodb 5.7.11, and python 2.7.10. I noticed some strange behavior when running this query: q = A.objects.values('b').annotate(most_recent=Max('created_at')) Produces this SQL: SELECT `core_a`.`b_id`, MAX(`core_a`.`created_at`) AS `most_recent` FROM `core_a`