Top "Django-settings" questions

A Django settings file is a Python module with module-level variables that contains all the configuration of your Django installation such as, Databases, Installed apps and Media and Static location to name a few.

Django: where do I call settings.configure?

The Django docs say that I can call settings.configure instead of having a DJANGO_SETTINGS_MODULE. I would like …

python django django-settings
Django: Check if settings variable is set

Here is an example of what I'm trying to achieve. The desired effect is that a particular feature should take …

python django django-settings
Cannot get environment variables in Django settings file

I'm trying to read some environment variables in Django settings, which i have defined in /home/user/.bashrc (and latter …

python linux django environment-variables django-settings
Python/Django - Avoid saving passwords in source code

I use Python and Django to create web applications, which we store in source control. The way Django is normally …

python django security version-control django-settings
Implementation of e-mail verification in Django

I have created a Django app. I have a registration page(simple HTML form) in the app,and it has …

python django django-models django-templates django-settings
DJANGO_SETTINGS_MODULE is undefined?

import os from os.path import abspath, dirname import sys # Set up django project_dir = abspath(dirname(dirname(__file__))) sys.…

django pinax django-settings
Moving django apps into subfolder and url.py error

I have a question about putting django apps into "apps" subdirectory. I have the app called “faktura” in a project_…

django django-apps django-settings
Django default_from_email name

I am looking to add a name to my default_from_email address in Django and wanted to know whether …

django django-settings django-email
Python: 'import *' vs execfile

In some of my Django apps I'm using a settings_local.py file to override settings that are different on …

python django django-settings python-import execfile
Django: Obtaining the absolute URL without access to a request object

I have a model like the one below. When an instance is created, I want to send out an e-mail …

python django django-signals django-settings