Posts by Frank Wiles

Frank Wiles

Pro-Tip - Breaking up django-ninja views

A simple import trick to make it easy to keep your django-ninja view functions in different Django apps and files.

Frank Wiles

Pro-Tip - Nullable DRF FloatFields and Javascript

Sometimes you want your FloatFields to be nullable, but your JS code isn't quite smart enough to handle it.

Frank Wiles

Pro-Tip - Helpful Shell alias to git repo root

I created a simple `r` shell alias that will take me to the root of the current git repository. As this is a common thing I need to do on my Mac BookPro when I've been exploring deep into a code base and now need to run some command at the root.

Frank Wiles

Keeping Django Models Ordered

How to smartly keep a set of Django ORM objects in order for drag-n-drop like situations.

Frank Wiles

pytest support for django-test-plus

django-test-plus has long been a useful helper library with Django. Now we've added some simple pytest fixture support to make it even more useful!

Frank Wiles

Today I Learned - Testing import file mismatch

Ran into a weird error with coverage, pytest, and Travis today and wanted to document an easy fix when you get a 'import file mistmatch' error from pip packages you do not control.

Frank Wiles

Check This Out - Optimized Python

Smaller and faster Python 3.6.x images for you to take advantage of.

Frank Wiles

Pro-Tip - Python 3 run command over SSH

Sometimes you just need to run a command on a remote host with ssh and Python 3 without any real fuss. Here is the simplest way we have found to do that and retrieve the output. 

Frank Wiles

Pro-Tip - Python: atexit

Python's atexit handler is one of those things people should use more often.  Some developers aren't even aware that it exists and that makes me sad. 

Frank Wiles

Pro-Tip - Python 12-factor apps with envparse

Getting your configuration from the system environment for your Python and/or Django apps is often the best way to provide security and flexibility. envparse makes it easy. 

Prev 1 2 3 4 5 6 7 8 9 10 Next