Django18初体验
1422 浏览 5 years, 11 months
37 SETTING FOR DIFFERENT ENVIRONMENT
版权声明: 转载请注明出处 http://www.codingsoho.com/remove settings.py
add folder “settings”, and file __init__.py, base.py, local.py, product.py
in __init__.py
from .base import *
try:
from .local import *
except:
pass
try:
from .production import *
except:
pass
try:
from .imac import *
except:
pass
try:
from .macbookpro import *
except:
pass