"I’m just gonna start with a tip from myself :) use os.path.dirname() in settings.py to avoid hardcoded dirnames Don’t hardcode path’s in your settings.py if you want to run your project in different locations. Use the following code in settings.py if your templates and static files are located within the Django project dir: # settings.py
import os.path
PROJECT_DIR = os.path.dirname(__file__)
...
STATIC_DOC_ROOT = os.path.join(PROJECT_DIR, "static")
...
TEMPLATE_DIRS = (
os.path.join(PROJECT_DIR, "templates"),
)"—
Favorite Django Tips & Features - Stack Overflow
Best feature, I don’t understand why it is standard.