开发者

Running migration file before ./manage.py migrate component

I have update our project from svn. There was a migration file in update. I have run this migration file before ./manage.py migrate component . Now I have this error:

raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % 
ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

How can I solve this? I have deleted 开发者_StackOverflow社区the migration file and updated again but nothing fixed.

Thanks in advance


https://docs.djangoproject.com/en/dev/topics/settings/

You do not have a system Environment Variable DJANGO_SETTINGS_MODULE, see the site above on how to set the environment variable.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜