除了项目文件夹名称外还涉及另外几处,在此记录一下:
Settings.py
ROOT_URLCONF = 'old_project_name.urls'
WSGI_APPLICATION = 'old_project_name.wsgi.application'
wsgi.py
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'old_project_name.settings')
asgi.py
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'old_project_name.settings')
manage.py
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'crms.settings')
发表回复