djangosnippets.org: Latest snippets tagged with 'conf'http://djangosnippets.org/tags/conf/2008-06-12T09:16:53.911498-05:00Default settings for a app
2008-06-12T09:16:53.911498-05:00phxxhttp://djangosnippets.org/snippets/796/<p>Save this as conf.py in the app's directory. Now you can do <code>from myapp.conf import settings</code>.</p>
<p>You can access from the imported object every item of your settings.py including the default settings of myapp. Though you don't have to define every setting in settings.py you use in your app. …</p>
Freely redistributableLoad templatetag libraries via settings
2007-07-26T11:56:19.731598-05:00miracle2khttp://djangosnippets.org/snippets/342/<p>In your settings file:</p>
<p>TEMPLATE_TAGS = (
"djutils.templatetags.sqldebug",
)</p>
<p>Make sure load_templatetags() gets called somewhere, for example in your apps <strong>init</strong>.py</p>
<p><em>Edit: Updated to work with templatetag libraries that use certain critical django-bits.</em></p>
Freely redistributable