Lessons about Django (page 15)
The links, tools and tips our engineers and designers share with each other, one “today I learned” at a time.
- lessons shared
- 288
- people sharing
- 29
- database started in
- 2016










Tech Insights· medium.com
Scaling Django Admin Date Hierarchy:
Shared by
Read on medium.com- Admin
- Django
Today I learned
When doing a FTS remember to cast the expression to text, e.g. `queryset.annotate(casted_field=Cast('field', TextField())).an...
When doing a FTS remember to cast the expression to text, e.g. queryset.annotate(casted_field=Cast('field', TextField())).annotate(vector=SearchVector('casted_field')).filter(vector=value). This allows even UUID fields to be searchable.
Carlos Coelho
Tech Insights
When doing a FTS remember to cast the expression to text, e.g. `queryset.annotate(casted_field=Cast('field', TextField())).an...
When doing a FTS remember to cast the expression to text, e.g.
queryset.annotate(casted_field=Cast('field', TextField())).annotate(vector=SearchVector('casted_field')).filter(vector=value). This allows even UUID fields to be searchable.Shared by
- Django
- Full Text Search
stackoverflow.com
On Django admin classes, use
list_display_links = Noneto disable links to edit pages:Flávio Juvenal
Tech Insights· stackoverflow.com
On Django admin classes, use
list_display_links = Noneto disable links to edit pages:Shared by
Read on stackoverflow.com- Admin
- Django


Tech Insights· medium.com
Use corresponding serializer classes for different request methods in DRF
Shared by
Read on medium.com- Django
- Django Rest Framework
- Python

blog.sentry.io
Tips for Reducing JavaScript Error Noise:
Spare your inbox from noisy unwanted errors with these helpful tips for reducing JavaScript error noises to make it easier to identify high-priority issues.
Rebeca Sarai

Tech Insights· blog.sentry.io
Tips for Reducing JavaScript Error Noise:
From blog.sentry.io
Spare your inbox from noisy unwanted errors with these helpful tips for reducing JavaScript error noises to make it easier to identify high-priority issues.
Shared by
Read on blog.sentry.io- Django
- Sentry

docs.djangoproject.com
Using
IGNORABLE_404_URLSyou can ignore 404s on particular pages: #ignorable-404-urlsRebeca Sarai

Tech Insights· docs.djangoproject.com
Using
IGNORABLE_404_URLSyou can ignore 404s on particular pages: #ignorable-404-urlsShared by
Read on docs.djangoproject.com- Django


Tech Insights· django-rest-framework.org
If you are using DRF and need to use the current user as a serializer field, use CurrentUserDefault as a default in a HiddenField #currentuserdefault #drf #django
Shared by
Read on django-rest-framework.org- API
- Django
- Drf

github.com
django-eraserhead: Django package that provides hints to optimize database usage by deferring unused fields (and more)
💂🏻 Django package that provides hints to optimize database usage by deferring unused fields (and more) - dizballanze/django-eraserhead
Flávio Juvenal

Tech Insights· github.com
django-eraserhead: Django package that provides hints to optimize database usage by deferring unused fields (and more)
From github.com
💂🏻 Django package that provides hints to optimize database usage by deferring unused fields (and more) - dizballanze/django-eraserhead
Shared by
Read on github.com- DB
- Django
- Optimization
- Performance


Tech Insights· peterbe.com
Fastest Redis configuration for Django
Shared by
Read on peterbe.com- Django
- Redis

caktusgroup.com
DRYer Django test code with subtests
Using subtests can help Python developers write cleaner code. Find out how.
Flávio Juvenal

Tech Insights· caktusgroup.com
DRYer Django test code with subtests
From caktusgroup.com
Using subtests can help Python developers write cleaner code. Find out how.
Shared by
Read on caktusgroup.com- Django
- Dry
- Python
- Test
- Tests

github.com
A piece of middleware that uses Cloudflare's HTTP/2 Push to push static media to the clients
A piece of middleware that uses Cloudflare's HTTP/2 Push to push static media to the clients. ⛺ - skorokithakis/django-cloudflare-push
Flávio Juvenal

Tech Insights· github.com
A piece of middleware that uses Cloudflare's HTTP/2 Push to push static media to the clients
From github.com
A piece of middleware that uses Cloudflare's HTTP/2 Push to push static media to the clients. ⛺ - skorokithakis/django-cloudflare-push
Shared by
Read on github.com- Cloudflare
- Django
- Http2


Tech Insights· joaorafaelm.github.io
GraphQL and Django in 5 minutes with graphene-django:
Shared by
Read on joaorafaelm.github.io- Django
- Graphql


Tech Insights· github.com
Use Django-debug-toolbar-request-history instead of django-debug-panel. The interface is simpler and doesn't requires installing an extention to chrome
Shared by
Read on github.com- Debugging
- Django
Book a call
Found it useful?
Let’s put it to work.
Tell us about your product and the problem in front of you. We’ll bring what we’ve learned on real projects.
Tell us about your product, and we’ll bring what we’ve learned.
Still prefer the good old email? Contact us



