Opened 11 years ago

Closed 11 years ago

#20137 closed Uncategorized (invalid)

django.core.exceptions.ImproperlyConfigured

Reported by: niranjansagar@… Owned by: nobody
Component: Uncategorized Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When i tired getting pyes this error has come , please let me know how this can be fixed .

from pyes import *

Traceback (most recent call last):

File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pyes-0.19.1-py2.7.egg/pyes/init.py", line 41, in <module>

from .djangoutils import *

File "/usr/local/lib/python2.7/dist-packages/pyes-0.19.1-py2.7.egg/pyes/djangoutils.py", line 6, in <module>

from django.db import models

File "/usr/local/lib/python2.7/dist-packages/django/db/init.py", line 11, in <module>

if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:

File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 52, in getattr

self._setup(name)

File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 45, in _setup

% (desc, ENVIRONMENT_VARIABLE))

django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

Change History (1)

comment:1 by Claude Paroz, 11 years ago

Resolution: invalid
Status: newclosed

Sorry, but the ticket system is not a support channel. (see TicketClosingReasons/UseSupportChannels)

Note: See TracTickets for help on using tickets.
Back to Top