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
accessibility
agile
agile
ai
ai
api
api
architecture
architecture
aws
aws
career
career
celery
celery
communication
communication
concurrency
concurrency
css
css
data
data
database
database
db
db
debug
debug
design
design
design system
design system
development
development
devops
devops
django
django
docker
docker
documentation
documentation
figma
figma
frontend
frontend
git
git
html
html
javascript
javascript
js
js
leadership
leadership
management
management
metrics
metrics
ml
ml
orm
orm
performance
performance
postgres
postgres
process
process
product
product
product design
product design
python
python
react
react
redux
redux
research
research
security
security
software
software
sql
sql
sre
sre
test
test
testing
testing
tests
tests
typescript
typescript
ui
ui
ux
ux
web
web
workflow
workflow
<p>Easily build flexible frontend filters with django-find: </p>
↗
https://github.com/knipknap/django-find/
Flávio Juvenal
Nov 9, 2018
Topics:
django
<p>django-partial-index allows you to set partial/conditional indexes and partial unique constraints, which are useful for ensuring data integrity according to your business logic: </p>
↗
https://github.com/mattiaslinnap/django-partial-index
Flávio Juvenal
Nov 5, 2018
Topics:
db, django
<p>For you pass an HTML string to a Django Template you have to turn autoescape off </p>
↗
https://stackoverflow.com/questions/19357462/django-passing-html-string-to-template
Amanda Savluchinske
Nov 5, 2018
Topics:
django, html
<p>Using Django REST Framework to build your APIs and getting confused between javascript's camelCase and the API's snake_case pattern while developing your front-end client? converts your snake_case attributes to camelCase when using JSON format</p>
↗
https://github.com/vbabiy/djangorestframework-camel-case
Hugo Bessa
Sep 24, 2018
Topics:
django, django rest framework, rest
<p>Django Subquery + Count: </p>
↗
https://stackoverflow.com/a/47371514/145349
Flávio Juvenal
Sep 24, 2018
Topics:
django, sql
<p>Django Pro-Tip – Slugs as primary keys: </p>
↗
https://www.revsys.com/tidbits/slugs-primary-keys/
Flávio Juvenal
Aug 21, 2018
Topics:
db, django, performance
<p>If you want to add a unique non-nullable field to a table with existent rows, you'll need to a few extra steps because <strong>Django generates the value to populate existent rows only once</strong>. For the extra steps, check these instructions in #migrations-that-add-unique-fields</p>
↗
https://docs.djangoproject.com/en/dev/howto/writing-migrations/
Carlos Coelho
Jul 20, 2018
Topics:
django, migrations
<p>Subtests are the Best </p>
↗
https://www.caktusgroup.com/blog/2017/05/29/subtests-are-best/
Flávio Juvenal
Jun 30, 2018
Topics:
django, python, test
<p>How to use Google Social Login with Django </p>
↗
https://fosstack.com/how-to-add-google-authentication-in-django/
Amanda Savluchinske
Jun 11, 2018
Topics:
api, django
<p>django-perf-rec is like Django's <code>assertNumQueries</code> on steroids! </p>
↗
https://github.com/YPlan/django-perf-rec
Flávio Juvenal
Jun 8, 2018
Topics:
django, performance, test
<p>Besides causing unexpected performance problems, a model default ordering in Django can cause problems to <code>values()</code>. Avoid default ordering! #interaction-with-default-ordering-or-order-by</p>
↗
https://docs.djangoproject.com/en/dev/topics/db/aggregation/
Flávio Juvenal
Jun 8, 2018
Topics:
db, django
<p>Effective TDD: Tricks to speed up Django tests (up to 10x faster!) </p>
↗
http://www.daveoncode.com/2013/09/23/effective-tdd-tricks-to-speed-up-django-tests-up-to-10x-faster/
Flávio Juvenal
May 31, 2018
Topics:
django, test
<p>A beginner’s guide to database locking and the lost update phenomena (examples in Hibernate, but relevant to Django!): </p>
↗
https://vladmihalcea.com/a-beginners-guide-to-database-locking-and-the-lost-update-phenomena/
Flávio Juvenal
May 23, 2018
Topics:
db, django, lock, transaction
<p>Modifying request session on tests </p>
↗
https://medium.com/@harshvb7/how-to-add-session-and-messages-in-django-requestfactory-16935a3351d0
Vanessa Barreiros
May 22, 2018
Topics:
django, tests
<p>Easy way to generate class diagrams pictures in a Django project from console: </p>
↗
https://simpleit.rocks/generate-uml-class-diagrams-from-django-models/
Lais Varejão
May 22, 2018
Topics:
class diagrams, django, uml
<p>Django transaction.atomic is not a lock! </p>
↗
https://stackoverflow.com/questions/42520917/does-django-atomic-transaction-lock-the-database
Flávio Juvenal
May 18, 2018
Topics:
db, django, transaction
<p>how to test Django migrations </p>
↗
https://www.caktusgroup.com/blog/2016/02/02/writing-unit-tests-django-migrations/
Hugo Bessa
May 17, 2018
Topics:
django, migrations, tests
<p>On Django, you should NOT use <code>loaddata</code> management command directly in a data migration. It will use the current model state, not the historical one, therefore your migration will certainly BREAK in the future: </p>
↗
https://stackoverflow.com/a/39743581/145349
Flávio Juvenal
May 7, 2018
Topics:
db, django, migrations
<p>How to use custom user models </p>
↗
https://medium.com/@gabrielfgularte/custom-user-model-no-django-d9bdf2838bd8
Amanda Savluchinske
Apr 10, 2018
Topics:
django
<p>Django <code>Coalesce</code> implementation doesn't consider empty string as a null value, so if one desires to consider it null when coalescing fields one should use Conditional Expressions to achieve the desired result </p>
↗
https://stackoverflow.com/a/35009466
Carlos Coelho
Apr 2, 2018
Topics:
aggregation, coalesce, django
<p>I learned how to implement a form using DetailView through a FormMixin! This is a good material for beginners who are learning how to work with Class Based Views and need to implement a form. </p>
↗
https://stackoverflow.com/questions/45659986/django-implementing-a-form-within-a-generic-detailview
Amanda Savluchinske
Apr 1, 2018
Topics:
django
<p>Be aware when using <code>annotate</code> with <code>values</code>/<code>values_list</code> on Django because order matters #order-of-annotate-and-values-clauses</p>
↗
https://docs.djangoproject.com/en/1.11/topics/db/aggregation/
Carlos Coelho
Mar 31, 2018
Topics:
aggregation, django, queryset
<p>Django testing for beginners </p>
↗
https://realpython.com/testing-in-django-part-1-best-practices-and-examples/
Vanessa Barreiros
Mar 29, 2018
Topics:
django, tests
<p>This is a good link for people who are starting out with Django and want to learn about Class Based Views </p>
↗
https://tests4geeks.com/class-based-views-django-tutorial/
Amanda Savluchinske
Mar 27, 2018
Topics:
django
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