my project is not running

Dear Sir,

I am having a project erppro

in pycharm environment it was running fine yesterday

But today it goes to doctest mode and give the following error.

please help
I am new in pycharm operation.

thank you

/usr/bin/python2.6 /opt/erppro/exams/views/
Traceback (most recent call last):
  File "/opt/erppro/exams/views/", line 6, in <module>
    from django.core.cache import cache
  File "/usr/local/lib/python2.6/dist-packages/django/core/cache/", line 77, in <module>
    if not settings.CACHES:
  File "/usr/local/lib/python2.6/dist-packages/django/utils/", line 276, in __getattr__
  File "/usr/local/lib/python2.6/dist-packages/django/conf/", 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.

Process finished with exit code 1
1 comment
Comment actions Permalink
Check into settings - django support if the paths are correctly configured. I had this problem in some project as well.

Please sign in to leave a comment.