from .base import *
import os.path


DATABASES = {
        'default': 
                {
                    'ENGINE': 'django.db.backends.sqlite3',
                    'NAME': os.path.join(SITE_ROOT, 'dev.db'),
                }
}

SESSION_COOKIE_DOMAIN = None
HAYSTACK_SOLR_URL = 'http://localhost:8983/solr'


from .base import *
import os.path


DATABASES = {
        'default': 
                {
                    'ENGINE': 'django.db.backends.sqlite3',
                    'NAME': os.path.join(SITE_ROOT, 'dev.db'),
                }
}

SESSION_COOKIE_DOMAIN = None
HAYSTACK_SOLR_URL = 'http://localhost:8983/solr'

try:
    from local_settings import *
except:
    pass


Allow local settings override as well.
Allow local settings override as well.

  from .base import *
  import os.path
  
  
  DATABASES = {
          'default': 
                  {
                      'ENGINE': 'django.db.backends.sqlite3',
                      'NAME': os.path.join(SITE_ROOT, 'dev.db'),
                  }
  }
  
  SESSION_COOKIE_DOMAIN = None
  HAYSTACK_SOLR_URL = 'http://localhost:8983/solr'
  
+ try:
+     from local_settings import *
+ except:
+     pass
  
+ 
Allow local settings override as well.
## Code Before:
from .base import *
import os.path


DATABASES = {
        'default': 
                {
                    'ENGINE': 'django.db.backends.sqlite3',
                    'NAME': os.path.join(SITE_ROOT, 'dev.db'),
                }
}

SESSION_COOKIE_DOMAIN = None
HAYSTACK_SOLR_URL = 'http://localhost:8983/solr'


## Instruction:
Allow local settings override as well.
## Code After:
from .base import *
import os.path


DATABASES = {
        'default': 
                {
                    'ENGINE': 'django.db.backends.sqlite3',
                    'NAME': os.path.join(SITE_ROOT, 'dev.db'),
                }
}

SESSION_COOKIE_DOMAIN = None
HAYSTACK_SOLR_URL = 'http://localhost:8983/solr'

try:
    from local_settings import *
except:
    pass

