Snippet List
Some INSTALLED_APPLICATIONS applications may not be critical for your website to work - for example you may only need them for development - like 'django_extensions' or 'debug_toolbar'. They needn't be installed actually for the site to work.
This way you can avoid discussions with other developers if some application should be included, or is it just spam, because if they don't like it, they don't have to install it.
On a production server you can leave this not installed, to avoid security concerns like a possibility to IP-spoof and see the debug toolbar.
- configuration
- settings
- conditional
- installed_apps
Here is a trivial way to keep your Django project in shared version control or in a public repository without exposing settings that could have security implications, and without needing to modify settings.py for your local test or production environments on checkout.
This is also a way to separate development settings from production settings, or to deploy the same code on multiple servers while only changing one site-specific "dotfile."
- files
- configuration
- settings
- development
- debug
In your site’s settings.py module (in your site root), TEMPLATE_DIRS takes absolute paths. Here is a way to dynamically determine the absolute path to the application directory so you only have to specify relative paths within settings.py. Obviously, replace “application_directory” with the name of your application’s directory.
4 snippets posted so far.