django settings default

I have a file and a file that I use to override some values for dev purposes. Everytime I run the ./ command, I have to specify --settings=whatever.local_settings. This becomes very tedious to do every time and I am trying to find a way to force to load my file every by default so that I don't have to type that long argument every time I want to run a command.

I have tried setting DJANGO_SETTINGS_MODULE, however, it appears that overrides this option.

Is it possible to make this happen or am I doomed to always specify that argument?

Answers sets path to settings for you, that's why it's ignoring DJANGO_SETTINGS_MODULE (it's basically just script that wraps around

There are 2 easy ways to fix your problem:

  1. set DJANGO_SETTINGS_MODULE and use to run all commands instead of This is even better if you use vitualenv.

  2. copy and name it (that's the name in my case) and rename all settings mentions to dev_settings.

For example:

#!/usr/bin/env python
from import execute_manager
import imp

    import settings_local
except ImportError:
    import sys
    sys.stderr.write("Error: Can't find the file '' in the directory containing %r. It appears you've customized things.\nYou'll have to run, passing it your settings module.\n" % __file__)

if __name__ == "__main__":

You can run all commands by ./ now.

Need Your Help

Alternative to header(location: ) php

php header

I have a while loop that constructs a url for an SMS api.

KeepAlive HTTP Requests on Appengine

http google-app-engine node.js keep-alive

Is it possible to have a HTTP keep-alive Request on Google Appengine much like node.js ?