virtualenv - Django developement server module is not installed but is -
i'm try run development server byt recive error this:
unhandled exception in thread started <function wrapper @ 0x807ad8848> traceback (most recent call last): file "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper fn(*args, **kwargs) file "/usr/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 107, in inner_run autoreload.raise_last_exception() file "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 252, in raise_last_exception six.reraise(*_exception) file "/usr/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper fn(*args, **kwargs) file "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.installed_apps) file "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = appconfig.create(entry) file "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 86, in create module = import_module(entry) file "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) importerror: no module named avatar
i'm using virtualenv , actived , project using , installed django-avatar there.
on local server module work :)
you have idea wrong?
i solved problem using absolute path python in enviroment resolve it. , add after manage.py.
/usr/home/login/virtualenvs/env_name/bin/python passenger_wsgi.py /usr/home/login/virtualenvs/env_name/bin/python manage.py
Comments
Post a Comment