我试图运行声明:
from neo4django.db import models
导致以下错误:
Traceback (most recent call last):
File "<pyshell#38>", line 1, in <module>
from neo4django.db import models
File "C:\Python27\lib\site-packages\neo4django\db\__init__.py", line 68, in <module>
if getattr(_settings, 'NEO4DJANGO_PROFILE_REQUESTS', False):
File "C:\Python27\lib\site-packages\django\utils\functional.py", line 184, in inner
self._setup()
File "C:\Python27\lib\site-packages\django\conf\__init__.py", line 40, in _setup
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.
请帮我解决这个问题。
答案 0 :(得分:1)