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>If using <code>get_or_create</code> don't forget to make use of <code>defaults</code> parameter</p>
↗
Carlos Coelho
Nov 16, 2017
Topics:
django, python
<p>Use django-postgres-extra for native upserts, more powerful HStoreField, more signals and indexes with conditions: </p>
↗
https://github.com/SectorLabs/django-postgres-extra
Flávio Juvenal
Nov 16, 2017
Topics:
django, postgres
<p>Django will store your dates in UTC if you set USE_TZ=True</p>
↗
Anderson Resende
Nov 11, 2017
Topics:
db, django
<p>If you need to create a fixture based on a single record from the database, you can use <code>django-fixture-magic</code> </p>
↗
https://github.com/davedash/django-fixture-magic
Carlos Coelho
Nov 9, 2017
Topics:
django
<p>You can use itertools.chain to group different querysets: #itertools.chain</p>
↗
https://docs.python.org/2/library/itertools.html
Anderson Resende
Nov 6, 2017
Topics:
django
<p>Postgres SQL Views in Django: </p>
↗
https://github.com/mypebble/django-pgviews
Flávio Juvenal
Nov 2, 2017
Topics:
django, postgres
<p>How to create symmetrical relationships in Django using ManyToMany's "through" </p>
↗
http://charlesleifer.com/blog/self-referencing-many-many-through/
Luca Bezerra
Oct 25, 2017
Topics:
django, orm, symmetrical
<p>Scaling Django Admin Date Hierarchy: </p>
↗
https://medium.com/@hakibenita/scaling-django-admin-date-hierarchy-85c8e441dd4c
Flávio Juvenal
Oct 23, 2017
Topics:
admin, django
<p>Implementing faceted search with Django and PostgreSQL: </p>
↗
https://simonwillison.net/2017/Oct/5/django-postgresql-faceted-search/
Flávio Juvenal
Oct 23, 2017
Topics:
django, postgres, search
<p>Soft Deletion in Django: </p>
↗
https://medium.com/@adriennedomingus/soft-deletion-in-django-e4882581c340
Lais Varejão
Oct 12, 2017
Topics:
django
<p>Use DRF CurrentUserDefault to set the current request user to a field in a serializer. Also, there's CreateOnlyDefault. #advanced-field-defaults</p>
↗
http://www.django-rest-framework.org/api-guide/validators/
Flávio Juvenal
Oct 11, 2017
Topics:
api, django, drf
<p>When doing a FTS remember to cast the expression to text, e.g. <code>queryset.annotate(casted_field=Cast('field', TextField())).annotate(vector=SearchVector('casted_field')).filter(vector=value)</code>. This allows even UUID fields to be searchable.</p>
↗
Carlos Coelho
Sep 29, 2017
Topics:
django, Full Text Search
<p>On Django admin classes, use <code>list_display_links = None</code> to disable links to edit pages: </p>
↗
https://stackoverflow.com/questions/1618728/disable-link-to-edit-object-in-djangos-admin-display-list-only
Flávio Juvenal
Sep 14, 2017
Topics:
admin, django
<p>Use corresponding serializer classes for different request methods in DRF </p>
↗
https://medium.com/@unpluggedcoder/use-corresponding-serializer-class-for-different-request-method-in-django-rest-framework-ce0efc04045d
Carlos Coelho
Sep 14, 2017
Topics:
django, Django Rest Framework, python
<p>Using <code>IGNORABLE_404_URLS</code> you can ignore 404s on particular pages: #ignorable-404-urls</p>
↗
https://docs.djangoproject.com/en/1.11/ref/settings/
Rebeca Sarai
Sep 11, 2017
Topics:
django
<p>Tips for Reducing JavaScript Error Noise: </p>
↗
https://blog.sentry.io/2017/03/27/tips-for-reducing-javascript-error-noise.html
Rebeca Sarai
Sep 11, 2017
Topics:
django, sentry
<p>DRYer Django test code with subtests </p>
↗
https://www.caktusgroup.com/blog/2017/05/29/subtests-are-best/
Flávio Juvenal
Aug 20, 2017
Topics:
django, dry, tests
<p>Fastest Redis configuration for Django </p>
↗
https://www.peterbe.com/plog/fastest-redis-optimization-for-django
Flávio Juvenal
Aug 20, 2017
Topics:
django, redis
<p>django-eraserhead: Django package that provides hints to optimize database usage by deferring unused fields (and more) </p>
↗
https://github.com/dizballanze/django-eraserhead
Flávio Juvenal
Aug 20, 2017
Topics:
db, django, optimization, performance
<p>A piece of middleware that uses Cloudflare's HTTP/2 Push to push static media to the clients </p>
↗
https://github.com/skorokithakis/django-cloudflare-push
Flávio Juvenal
Aug 19, 2017
Topics:
cloudflare, django, http2
<p>GraphQL and Django in 5 minutes with graphene-django: </p>
↗
https://joaorafaelm.github.io/blog/graphql-and-django-in-5-minutes
Lais Varejão
Aug 17, 2017
Topics:
django, graphql
<p>Use Django-debug-toolbar-request-history instead of django-debug-panel. The interface is simpler and doesn't requires installing an extention to chrome </p>
↗
https://github.com/djsutho/django-debug-toolbar-request-history
Filipe Ximenes
Jul 20, 2017
Topics:
debugging, django
<p>Page Speed Matters </p>
↗
https://medium.com/@premayogan/performance-and-optimization-django-websites-c6a13f810936
Lais Varejão
Jul 13, 2017
Topics:
performance, django
<p><code>Request.POST["key"]</code> returns only the last value of a list, if you want a list of values for a key, use the following: <code>values = request.POST.getlist('key')</code></p>
↗
Rebeca Sarai
Jul 6, 2017
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