python - How to set DJANGO_SETTINGS_MODULE? -
i have structure:
example.com — bin — include — lib — local — project |— manage.py |— project |— __init__.py |— settings.py |— urls.py |— wsgi.py
i set export django_settings_module=project.settings
, trying install mongodb following command:
pip install git+https://github.com/django-nonrel/mongodb-engine
after execution, following error occurs:
downloading/unpacking git+https://github.com/django-nonrel/mongodb-engine cloning https://github.com/django-nonrel/mongodb-engine /tmp/pip-gv3v7o-build running setup.py egg_info package git+https://github.com/django-nonrel/mongodb-engine error:root:error while trying django settings module. error was: not import settings 'project.settings' (is on sys.path?): no module named project.settings requirement satisfied (use --upgrade upgrade): pymongo in ./lib/python2.7/site-packages (from django-mongodb-engine==0.5.2) requirement satisfied (use --upgrade upgrade): djangotoolbox>=1.6.0 in ./lib/python2.7/site-packages (from django-mongodb-engine==0.5.2) cleaning up...
how can fix it?
Comments
Post a Comment