djangosnippets.org: Latest snippets tagged with 'staging'https://djangosnippets.org/tags/staging/2015-07-11T11:33:20.330738-05:00better localsettings import
2015-07-11T11:33:20.330738-05:00andrewhttps://djangosnippets.org/snippets/10511/<p>Most people simply wrap "from localsettings import *" in a try/except ImportError block. That's what I've done for years, but recently came up with this better way.</p>
<p>The problem this snippet solves is that if your localsettings.py itself causes an ImportError somehow, that error will be silently swallowed and your …</p>
Freely redistributableDev/staging/prod environment settings seperation
2011-02-06T13:44:07.396734-06:00sleepycalhttps://djangosnippets.org/snippets/2349/<p>Read code for info</p>
Freely redistributableUrl overrides and concurrent site versions
2007-03-08T12:37:43.139188-06:00henrikvhttps://djangosnippets.org/snippets/92/<p>If you want to run multiple versions of a site from the same project IE a staging version and the live one, you need two settings and urlconf files. </p>
<ol>
<li>make separate copies of settings_staging.py and urls_staging.py in the project dir. </li>
<li>Change SITE_ID and ROOT_URLCONF in settings_staging.py</li>
<li>Make extra include lines …</li></ol>
Freely redistributable