Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The Perfect Django Settings File.
One small thing I do differently: in my dev machines, I'll set and export DJANGO_DEBUG in the environment. Then in settings.py:
import os DEBUG = 'DJANGO_DEBUG' in os.environ
There are no comments on this comment yet.
One small thing I do differently: in my dev machines, I'll set and export DJANGO_DEBUG in the environment. Then in settings.py:
This doesn't hardcode a single hostname in checked-in code, and works well across different machines and developers.