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 3 years, 11 months ago
  2. Rails-like environments using Django by ElfSternberg 3 years, 7 months ago
  3. Keep settings.py in version control safely by mboersma 6 years, 2 months ago
  4. Setting distinction between development and public server by Archatas 6 years, 2 months ago
  5. Better Static Image Serving With Fallback by menendez 3 years, 1 month ago

Comments

(Forgotten your password?)