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.
精彩评论