djangosnippets.org: Latest snippets tagged with 'configuration'http://djangosnippets.org/tags/configuration/2014-05-11T23:54:10.973292-05:00Conditional INSTALLED_APPS entry
2014-05-11T23:54:10.973292-05:00tgandorhttp://djangosnippets.org/snippets/3048/<p>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. </p>
<p>This way you can avoid discussions with other developers if some application should …</p>
Freely redistributableDjango with Fast CGI (Server Conf)
2010-05-06T06:57:32.836879-05:00jackoderhttp://djangosnippets.org/snippets/2011/<p>I've taken it from hostgator help page.</p>
<p>I hope it will be useful for you.</p>
Freely redistributableKeep settings.py in version control safely
2007-03-09T13:12:17.777824-06:00mboersmahttp://djangosnippets.org/snippets/94/<p>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.</p>
<p>This is also a way to separate development …</p>
Freely redistributableDynamically specify TEMPLATE_DIRS
2007-02-28T05:19:25.832029-06:00ajs17http://djangosnippets.org/snippets/47/<p>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.</p>
Freely redistributable