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>Query Expressions are amazing </p>
↗
https://www.caktusgroup.com/blog/2016/06/20/query-expressions-are-amazing/
Anderson Resende
Jan 18, 2017
Topics:
django
<p>Use a custom loaddata management command to load data from stdin to production Django projects. Useful for loading data into Heroku: </p>
↗
http://stackoverflow.com/questions/15041853/running-loaddata-on-heroku-without-adding-the-data-file-to-repository
Flávio Juvenal
Jan 16, 2017
Topics:
django, heroku
<p>If you're using <code>CELERY_ALWAYS_EAGER = True</code>, probably you'll also want <code>CELERY_EAGER_PROPAGATES_EXCEPTIONS = True</code> to find bugs</p>
↗
Flávio Juvenal
Jan 6, 2017
Topics:
celery, django
<p>Django bugfix release: 1.10.5 - update your projects! </p>
↗
https://www.djangoproject.com/weblog/2017/jan/04/bugfix-release/
Flávio Juvenal
Jan 5, 2017
Topics:
django
<p>On Django templates, avoid nested <code>for</code>s on simple cases by using <code>ifchanged</code> block tag: #ifchanged</p>
↗
https://docs.djangoproject.com/en/1.10/ref/templates/builtins/
Flávio Juvenal
Dec 28, 2016
Topics:
django, template
<p>On Django, validate ZIP codes, states, social security numbers and more with django-localflavor: </p>
↗
https://django-localflavor.readthedocs.io/en/latest/localflavor/us/
Flávio Juvenal
Dec 28, 2016
Topics:
django
<p>Use Hashids to generate short obfuscated strings from IDs. Useful for URL shorteners and human friendly IDs: </p>
↗
https://pypi.python.org/pypi/django-hashid-field
Felipe Farias
Dec 27, 2016
Topics:
django, python
<p>On a Django test, get the HTML content of an e-mail with <code>content, mimetype = mail.outbox[0].alternatives[0]</code></p>
↗
Flávio Juvenal
Dec 27, 2016
Topics:
django, email
<p>Testing image upload in Django Rest Framework: </p>
↗
http://bit.ly/2ib17M7
Victor Carriço
Dec 27, 2016
Topics:
django, django-rest-framework, tests
<p>Speed up your Django automated tests with <code>python manage.py test --keepdb --parallel</code></p>
↗
Flávio Juvenal
Dec 27, 2016
Topics:
django, tests
<p>While developing, do <code>python manage.py --keepdb</code> to speed up your Django tests. This prevents the overhead of creating and destroying a new test DB</p>
↗
Flávio Juvenal
Dec 22, 2016
Topics:
django, tests
<p>Django-solo helps working with singletons: </p>
↗
https://github.com/lazybird/django-solo
Flávio Juvenal
Dec 21, 2016
Topics:
django
<p>You can pass a <code>update_fields</code> param to the model <code>save</code> method. One interesting use for this is to avoid updating dates in time stamped models.</p> <p><code>product.name = 'Name changed again' product.save(update_fields=['name'])</code></p> <p><a href="#specifying-which-fields-to-save">#specifying-which-fields-to-save</a></p>
↗
https://docs.djangoproject.com/en/1.10/ref/models/instances/
Flávio Juvenal
Dec 21, 2016
Topics:
django
<p>Use <code>subTest</code> in Python unittest when asserting inside loop: <a href="#.425k66c9b">#.425k66c9b</a></p>
↗
https://hackernoon.com/the-best-new-feature-in-unittest-you-didnt-know-you-need-e0d26c213dce
Filipe Ximenes
Dec 21, 2016
Topics:
django, tests
<p>On Django, access form error codes in the template use the <code>as_data</code> attribute like this: <code>{% for error in form.errors.as_data %}{% endfor %}</code> </p>
↗
Felipe Farias
Dec 21, 2016
Topics:
django
Previous
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