Django18初体验
1443 浏览 6 years, 1 month
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