Home Download Buy Blog Forum Support

django error build project

django error build project

Postby kobzar on Sun Oct 28, 2012 9:31 am

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
Code: Select all
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
    self._setup()
  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?
kobzar
 
Posts: 19
Joined: Mon Apr 23, 2012 5:53 am

Re: django error build project

Postby kobzar on Fri Nov 09, 2012 10:10 pm

?
kobzar
 
Posts: 19
Joined: Mon Apr 23, 2012 5:53 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 17 guests