Using relative paths for Django template directories
Django’s template dirs are specified as absolute paths in settings.py:
But since this is just Python code, it is relatively easy to specify relative paths (no pun intended). As described in this blog, add the following code to settings.py:
And then in the TEMPLATE_DIRS section you can specify a relative path like this: