djangosnippets.org: Latest snippets tagged with 'applications'http://djangosnippets.org/tags/applications/2011-07-14T12:14:51.347427-05:00django app name & breadcrumbs l10n
2011-07-14T12:14:51.347427-05:00xormaghttp://djangosnippets.org/snippets/2488/<p>This approach allows you to rename you app name & app breadcrumbs within admin interface.</p>
<p>Paste the code in admin.py of your application and change AppLabelRenamer.main params.</p>
Freely redistributableUpdate applications
2010-07-19T02:11:18.675877-05:00alem0larshttp://djangosnippets.org/snippets/2113/<p>This snippet is based on 928.</p>
<p>I've added the support to update a custom folder, using shell arguments.</p>
<p>It requires the argparse module.</p>
<p>You can install it with:
pip install argparse</p>
<p>Usage:</p>
<h1>Updates repositories in the specified <folder path></h1>
<h1>The default is the ./ folder</h1>
<p>update_repos --path <folder path></p>
<h1>List …</h1>
Freely redistributableContext processor for django admin app_list
2010-02-11T13:10:32.385855-06:00alexanderhttp://djangosnippets.org/snippets/1921/<p>I never found a good snippet or tutorial to get the app_list (in django.admin) on other pages except the index page. So i started asking on irc j00bar has given me a very nice answer, but first i didn't know what to do with it till now.
</p>
<p>Anyways this snippet …</p>
Freely redistributable3rd Party App Directories
2008-06-30T14:48:10.904005-05:00thalinhttp://djangosnippets.org/snippets/837/<p>How to make this work:</p>
<ul>
<li>Put the code into your settings.py (or even better, local_settings.py if you have one)</li>
<li>Put 3rd party apps you'd like to use into the directories specified in APP_DIRS.</li>
<li>Place 'appname', into INSTALLED_APPS.</li>
</ul>
<p>Just a little trick I use to keep from having to install apps …</p>
Freely redistributableAutomagically import settings from installed applications
2008-01-31T08:03:06.767993-06:00jezdezhttp://djangosnippets.org/snippets/573/<p>Use this snippet at the end of your main settings.py file to automagically import the settings defined in each app of <code>INSTALLED_APPS</code> that begins with <code>APPS_BASE_NAME</code>.</p>
<p>Set <code>APPS_BASE_NAME</code> to the base name of your Django project (e.g. the parent directory) and put <code>settings.py</code> files in every app directory (next …</p>
Freely redistributable