hi 2 all.
i am try to used ST2 to develop my django project.
i am add project and app from console, with django-admin.
then i change code on my settings and models files.
But when i try ctrl+b to build project, i got error
Traceback (most recent call last):
File "/home/kobzar/Projects/mysite/books/models.py", line 1, in <module>
from django.db import models
File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line 11, in <module>
if DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner
File "/usr/lib/python2.7/dist-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.
[Finished in 0.0s with exit code 1]
if i try build project from pycharm or vim - all working fine.
Whant i nedd set in ST2?