<filename>config/settings.py
# 运行环境：dev/product
environ = 'product'

if environ == 'dev':
    from . import *
elif environ == 'product':
    from .production import *

PROJECT_NAME = 'SearchEngine'
BASE_DIR = '~/Code/SearchEngine'

<filename>config/settings.py
# 运行环境：dev/product
environ = 'product'

if environ == 'dev':
    from . import *
elif environ == 'product':
    from .production import *

PROJECT_NAME = 'SearchEngine'
BASE_DIR = '~/Code/SearchEngine'

# 运行环境：dev/product