old_contents: #{{ pillar['salt_managed'] }}
  
  try:
      from .settings import *
  except ImportError:
      import sys, django
      django.utils.six.reraise(RuntimeError, *sys.exc_info()[1:])  # use RuntimeError to extend the traceback
  except:
      raise
  
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  ADMINS = (
      ("{{ pillar['administrator_name'] }}", "{{ pillar['administrator_email'] }}"),
  )
  
  DATABASES = {
          'default': {
                      'ENGINE': '{{ pillar["dbengine"] }}',
                      'NAME': '{{ pillar["dbname"] }}',
                      'USER': '{{ pillar["dbuser"] }}',
                      'PASSWORD': '{{ pillar["dbpassword"] }}',
                      'HOST': '{{ pillar["dbhost"] }}',
                      'PORT': '{{ pillar["dbport"] }}',
                  }
  }
  
  STATIC_ROOT = '/opt/static/demo-dev'
  
  SECRET_KEY = '{{ pillar["secret_key"] }}'
  
new_contents: #{{ pillar['salt_managed'] }}
  
  try:
      from .settings import *
  except ImportError:
      import sys, django
      django.utils.six.reraise(RuntimeError, *sys.exc_info()[1:])  # use RuntimeError to extend the traceback
  except:
      raise
  
  
  DEBUG = True
  TEMPLATE_DEBUG = DEBUG
  
  ADMINS = (
      ("{{ pillar['administrator_name'] }}", "{{ pillar['administrator_email'] }}"),
  )
  
  DATABASES = {
          'default': {
                      'ENGINE': '{{ pillar["dbengine"] }}',
                      'NAME': '{{ pillar["dbname"] }}',
                      'USER': '{{ pillar["dbuser"] }}',
                      'PASSWORD': '{{ pillar["dbpassword"] }}',
                      'HOST': '{{ pillar["dbhost"] }}',
                      'PORT': '{{ pillar["dbport"] }}',
                  }
  }
  
  STATIC_ROOT = '/srv/static/demo-dev/'
  MEDIA_ROOT = '/var/media/demo-dev/'
  
  SECRET_KEY = '{{ pillar["secret_key"] }}'
  
subject: make static directory