Override settings from another Django app
<p>How can I in my project settings.py override a setting from an apps settings.py?</p>

<p>I tried importing it like this:</p>

<pre><code>import app.settings
EXTENSIONS = {
    'Folder': [''],
    'Image': ['.jpg', '.jpeg', '.gif', '.png', '.tif', '.tiff', '.svg'],
}
</code></pre>

<p><strong>But I get an error:</strong></p>

<blockquote>
  <p>django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting
  must not be empty.</p>
</blockquote>

<p>How can I override settings from another app?</p>

<p>Your SECRET_KEY is empty or missing in settings.py file.</p>

<p>Add random generated SECRET_KEY to settings file.</p>

<p>For example:</p>

<pre><code># SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '=6x$7smkllimrwa@j+d7(tr%i=3cax!bz+0vyje%$!gj+*dvd4'
</code></pre>

python django