In other words, what did you not know when you started with Django that you wish someone had told you?
I’ve dabbled some in Django but nothing really serious. However, I’m hoping to change that, and I’m wondering if there’s any gotchas/shortcomings/whatever that I need to be aware of as I go.
Be aware of specifying absolute paths in your
settings.pyfile. Django doesn’t come with an out-of-the-box solution for making everything relative, and you have to employ Python’s utilities. The usual solution is something like:(The last replace part is for Windows runs).
And then use it as follows:
etc.