Load a local settings file for dev/test environments

1
2
3
4
try:
    from settings_local import *
except ImportError:
    print u'File settings_local.py is not found. Continuing with production settings.'

More like this

  1. Load local settings by ofalk 2 years, 8 months ago
  2. Better Static Image Serving With Fallback by menendez 1 year, 10 months ago
  3. Setting distinction between development and public server by Archatas 4 years, 11 months ago
  4. Rails-like environments using Django by ElfSternberg 2 years, 3 months ago
  5. Dynamically maintain local_constants.py from South migration by menendez 1 year, 11 months ago

Comments

(Forgotten your password?)