Revision history [back]
optional module - upload avatar configuration problem
I am following the steps described in askbot documentation regarding upload avatars.
I run the command pip install -e git+git://github.com/ericflo/django-avatar.git#egg=django-avatar
I add inside my settings.py, in INSTALLED_APPS, this line: 'avatar',
I run python manage.py syncdb
MEDIA_ROOT and MEDIA_URL are already configured inside my settings.py
Additional info:
a) The first time I tried to run manage.py syncdb I got exceptions that my environment is not configured with PIL. So I run pip install PIL and the specific problem disappeared
b)There is a very similar question in askbot where @Evgeny asks (last comment) if a virtual env is used. In my case, I am using virtual environment, but I run all the above commands pointing to the right path of my virtual environment, so I am sure that I install everything in the right location.
c) I also run setup.py install, manage.py migrate, manage.py collectstatic (just in case is needed)
And now the problem (finally).
When I try to start the server, in logs of the server I am getting this exception: ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named avatar"
Any ideas? I also found these instructions in python site. Step 2 is similar but not the same with askbot urls.py. Is this important?
optional module - upload avatar configuration problem
I am following the steps described in askbot documentation regarding upload avatars.
I run the command pip install -e git+git://github.com/ericflo/django-avatar.git#egg=django-avatar
I add inside my settings.py, in INSTALLED_APPS, this line: 'avatar',
I run python manage.py syncdb
MEDIA_ROOT and MEDIA_URL are already configured inside my settings.py
Additional info:
a) The first time I tried to run manage.py syncdb I got exceptions that in my environment is not configured with PIL. So I run pip install PIL and the specific problem disappeared
b)There is a very similar question in askbot where @Evgeny asks (last comment) if a virtual env is used. In my case, I am using virtual environment, but I run all the above commands pointing to the right path of my virtual environment, so I am sure that I install everything in the right location.
c) I also run setup.py install, manage.py migrate, manage.py collectstatic (just in case is needed)
And now the problem (finally).
When I try to start the server, in logs of the server I am getting this exception: ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named avatar"
Any ideas? I also found these instructions in python site. Step 2 is similar but not the same with askbot urls.py. Is this important?
optional module - upload avatar configuration problem
I am following the steps described in askbot documentation regarding upload avatars.
I run the command pip install -e git+git://github.com/ericflo/django-avatar.git#egg=django-avatar
I add inside my settings.py, in INSTALLED_APPS, this line: 'avatar',
I run python manage.py
syncdbsyncddbMEDIA_ROOT and MEDIA_URL are already configured inside my settings.py
Additional info:
a) The first time I tried to run manage.py syncdbsyncddb I got exceptions that in my environment is not configured PIL. So I run pip install PIL and the specific problem disappeared
b)There is a very similar question in askbot where @Evgeny asks (last comment) if a virtual env is used. In my case, I am using virtual environment, but I run all the above commands pointing to the right path of my virtual environment, so I am sure that I install everything in the right location.
c) I also run setup.py install, manage.py migrate, manage.py collectstatic (just in case is needed)
And now the problem (finally).
When I try to start the server, in logs of the server I am getting this exception: ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named avatar"
Any ideas? I also found these instructions in python site. Step 2 is similar but not the same with askbot urls.py. Is this important?