1 Blog Entry for June 2008
Django and Relativity
My default Django settings file has changed over time to now include settings that do not depend on the location of the project on the filesystem. This is great in a team environment where more than one person is working on the same project, or when deploying your project to a web server that likely has different paths to the project root directory.
There are essentially 2 places that are looking for a filesystem path:
- Templates
- Media
Let's assume the following directory structure for a Django project:
Example Django project directory structure
Project Root
One of the first things ...