<p>If you use iterator() to run the query, prefetch_related() calls will be ignored since these two optimizations can't be used together</p>
Open link
Carlos Coelho
Posted on
November 28, 2019
Topics:
django, orm
Let's talk!
Clients
Services
Blog
About us
Careers
Let's talk!
SOFTWARE
HOUSE
Clients
Services
MVP Development
Web Development
Staff Augmentation
Insights
Blog
Learnings
Careers
About us
Contact us
Learnings
Boost your knowledge with the insights from our expert team.
accessibility
agile
ai
api
architecture
aws
career
celery
communication
concurrency
css
data
database
db
debug
design
design system
development
devops
django
docker
documentation
figma
frontend
git
html
javascript
js
leadership
management
metrics
ml
orm
performance
postgres
process
product
product design
python
react
redux
research
security
software
sql
sre
test
testing
tests
typescript
ui
ux
web
workflow
<p>Bringing Back Skeuomorphic Design </p>
↗
https://blog.prototypr.io/bringing-back-skeuomorphic-design-d211cc1c22d2
Felipe Farias
Mar 9, 2018
Topics:
design, skeuomorphic design
<p>Python & Async Simplified by Andrew Godwin </p>
↗
https://www.aeracode.org/2018/02/19/python-async-simplified/
Lais Varejão
Mar 9, 2018
Topics:
python
<p>a good article about how UX has evolved alongside software development and agile methods </p>
↗
https://uxplanet.org/the-evolution-of-ux-process-methodology-47f52557178b
Rob Novelino
Mar 8, 2018
Topics:
<p>If you use <code>iterator()</code> on a Django queryset, <code>prefetch_related()</code> calls will be ignored since these two optimizations do not make sense together (from "QuerySet API reference" section of Django docs)</p>
↗
Flávio Juvenal
Mar 6, 2018
Topics:
<p>When looking at your logs you may see <code>sql_error_code = 00000 LOG</code>. No need to worry this is Heroku's way to say "No error here". </p>
↗
https://help.heroku.com/MJUI0JR0/why-am-i-getting-the-postgres-error-sql_error_code-00000-in-my-logs
Rebeca Sarai
Mar 6, 2018
Topics:
heroku, postgres
<p>If you want the number of items in a QuerySet and are also retrieving model instances from it (for example, by iterating over it), it’s probably more efficient to use len(queryset) which won’t cause an extra database query like count() would.</p>
↗
Lais Varejão
Mar 6, 2018
Topics:
django
<p>Celery has a default configuration that removes every customized logs configuration. So if you change your logs root configuration the changes will only work on the django part. To allow this customization you should do this <code>worker_hijack_root_logger = False</code>: #std:setting-worker_hijack_root_logger</p>
↗
http://docs.celeryproject.org/en/latest/userguide/configuration.html
Rebeca Sarai
Mar 6, 2018
Topics:
celery, django, logging
<p>If you want to assert the call order of multiple patched functions you can attach mocks as attributes #attaching-mocks-as-attributes</p>
↗
https://docs.python.org/3/library/unittest.mock.html
Hugo Bessa
Mar 6, 2018
Topics:
<p>great introduction guide to Redux: </p>
↗
https://www.smashingmagazine.com/2016/06/an-introduction-to-redux/
Arimateia Neto
Mar 2, 2018
Topics:
react, redux
<p>great Adobe XD guide for UX/UI designers: </p>
↗
https://www.xdguru.com/adobe-xd-guide/
Aline Silveira
Mar 2, 2018
Topics:
design, ui, ux
<p>Pydash is the Lodash for Python </p>
↗
https://github.com/dgilland/pydash/
Filipe Ximenes
Mar 2, 2018
Topics:
python
<p>Django Admin Cookbook: </p>
↗
https://books.agiliq.com/projects/django-admin-cookbook/en/latest/export.html
Rebeca Sarai
Feb 28, 2018
Topics:
django
<p>If you need to use FTS with UUID fields, remember to cast the field to TextField before using SearchVector</p>
↗
Carlos Coelho
Feb 26, 2018
Topics:
django, fulltextsearch
<p>Prevent copy text manipulation in Chrome: </p>
↗
https://www.ghacks.net/2016/05/24/chrome-copy-text-manipulation/
Flávio Juvenal
Feb 26, 2018
Topics:
chrome, clipboard
<p>To avoid a FileField with a custom storage using AWS S3 (django-storages) to try authenticating when model is saved you can patch the save method of the instance of the storage. Eg.: <code>python class MyTest(TestCase): @mock.patch('my_app.models.my_s3_boto_storage_instance.save') def test_create_my_model(self, save): pass # test model creation</code></p>
↗
Hugo Bessa
Feb 26, 2018
Topics:
aws s3, django, django-storages, mock, tests
<p>Accessing parent model instance from modelform of admin inline: </p>
↗
https://stackoverflow.com/questions/9422735/accessing-parent-model-instance-from-modelform-of-admin-inline/12053145
Flávio Juvenal
Feb 26, 2018
Topics:
admin, django
<p>The Truth about Estimating Software </p>
↗
https://medium.com/@mwarcholinski/the-truth-about-estimating-software-development-time-story-13f3059d2e04
Anderson Resende
Feb 24, 2018
Topics:
<p>a good research on what people look for in a job and how some of these things are overlooked </p>
↗
https://hbr.org/2018/02/people-want-3-things-from-work-but-most-companies-are-built-around-only-one
Rob Novelino
Feb 21, 2018
Topics:
<p>If you need to get only one field from a related model you should use annotate </p>
↗
https://stackoverflow.com/questions/35524259/selecting-specific-fields-using-select-related-in-django
Anderson Resende
Feb 21, 2018
Topics:
django, orm
<p>Django Tips: Designing Better Models </p>
↗
https://simpleisbetterthancomplex.com/tips/2018/02/10/django-tip-22-designing-better-models.html
Flávio Juvenal
Feb 15, 2018
Topics:
django, model
<p>9 Django Tips for Working with Databases: </p>
↗
https://medium.com/@hakibenita/9-django-tips-for-working-with-databases-beba787ed7d3
Flávio Juvenal
Feb 15, 2018
Topics:
db, django, postgres
<p>using ';' on trello allows you to change how visible the labels are on a card when visualizing the whole board.</p>
↗
Rob Novelino
Feb 15, 2018
Topics:
<p>Benefits of having technical people working on sales and focusing on helping the customer </p>
↗
https://greatnotbig.com/2017/12/how-we-sell-software-services/
Rob Novelino
Feb 15, 2018
Topics:
management, marketing
<p>how taking good care of culture is important and how focusing only in growth has it's consequences </p>
↗
https://www.nytimes.com/2017/11/25/business/etsy-josh-silverman.html
Rob Novelino
Feb 9, 2018
Topics:
Previous
Next
Close Cookie Preference Manager
Cookie Settings
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts.
Check our privacy policies.
Strictly Necessary (Always Active)
Cookies required to enable basic website functionality.
Analytics
Cookies helping understand how this website performs, how visitors interact with the site, and whether there may be technical issues.
Marketing
Cookies used to deliver advertising that is more relevant to you and your interests.
Personalization
Cookies allowing the website to remember choices you make (such as your user name, language, or the region you are in).
Save settings
Accept all
We use Cookies to promote our services.
Settings and Privacy.
Accept