Somethings should Notice
The canonical way to begin a python script is
! /usr/bin/env python
This will work on any posix system, while /usr/bin/python won’t.
(thank TRauMa)
Fredrik, I’m not sure what you mean; there are examples in the code snippets of settingDJANGO_SETTINGS_MODULE
, but it’s not “relative to” anything — it’s a dotted Python path to a Django settings module, and I’m hoping that folks who are reading this have at least gotten far enough along to understand that (and to understand what a Django settings module is) :)
(thank James Bennett)
Comments
Post a Comment