我目前有一个使用Django 1.3的Python项目,运行在Mountain Lion操作系统上,现在想要升级到Django 1.5。但是当我尝试执行python manage.py runserver
时,出现了以下错误:
Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've customized things. You'll have to run django-admin.py, passing it your settings module. (If the file settings.py does indeed exist, it's causing an ImportError somehow.)
我意识到项目结构可能有所不同,是否有任何方法可以将1.3项目转换或升级为1.5项目呢?
settings.py
),但还没有更新manage.py
。 - kirelagin