(env)$ python --version
Python 2.7.3
(env)$ django-admin.py --version
1.5
(env)$ pip install django-categories
Downloading/unpacking django-categories
Running setup.py egg_info for package django-categories
Traceback (most recent call last):
File "", line 16, in
File "/home/ec2-user/investormill/env/build/django-categories/setup.py", line 2, in
import categories
File "categories/init.py", line 23, in
from categories import settings
File "categories/settings.py", line 4, in
from django.db.models import Q
File "/home/ec2-user/investormill/env/lib/python2.7/site-packages/django/db/init.py", line 11, in
if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/ec2-user/investormill/env/lib/python2.7/site-packages/django/conf/init.py", line 52, in getattr
self._setup(name)
File "/home/ec2-user/investormill/env/lib/python2.7/site-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.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 16, in
File "/home/ec2-user/investormill/env/build/django-categories/setup.py", line 2, in
File "categories/init.py", line 23, in
from categories import settings
File "categories/settings.py", line 4, in
from django.db.models import Q
File "/home/ec2-user/investormill/env/lib/python2.7/site-packages/django/db/init.py", line 11, in
if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:
File "/home/ec2-user/investormill/env/lib/python2.7/site-packages/django/conf/init.py", line 52, in getattr
File "/home/ec2-user/investormill/env/lib/python2.7/site-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.
Command python setup.py egg_info failed with error code 1 in /home/ec2-user/investormill/env/build/django-categories
Storing complete log in /home/ec2-user/.pip/pip.log