Ask Your Question

optional module - upload avatar configuration problem

asked 2012-05-19 11:01:44 -0600

alexandros.z gravatar image

updated 2012-05-19 11:11:01 -0600

I am following the steps described in askbot documentation regarding upload avatars.

  1. I run the command pip install -e git+git://

  2. I add inside my, in INSTALLED_APPS, this line: 'avatar',

  3. I run python syncdb

  4. MEDIA_ROOT and MEDIA_URL are already configured inside my

Additional info:

a) The first time I tried to run 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 install, migrate, 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 Is this important?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-05-19 12:50:20 -0600

alexandros.z gravatar image

Problem solved for me!

Of course, I had configuration problems. I tried to install django-avatar not in my virtual environment but in the global one, and now everything works fine!

Great feature!!

edit flag offensive delete link more


I am also having same problem. when I install django-avatar got install as follows bin askbot include lib local src django-avatar is in src folder... how can i get it to install inside askbot folder..?

SocialQA gravatar imageSocialQA ( 2014-01-30 11:14:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-05-19 11:01:44 -0600

Seen: 487 times

Last updated: May 19 '12