DatabaseError with django-avatar

105 views Asked by At

I just downloaded django-avatar and I am getting the following error:

Exception Type: DatabaseError
Exception Value: (1146, "Table 'my_app.avatar_avatar' doesn't exist")

Traceback

.../lib/python2.7/site-packages/avatar/views.py in change
93.    avatar, avatars = _get_avatars(request.user)
▶ Local vars
.../lib/python2.7/site-packages/avatar/views.py in _get_avatars
45.    if primary_avatar:
▶ Local vars

To clarify, I'm not using the django.contrib.auth app for my users. How do I set up my user model with django-avatar?

1

There are 1 answers

0
Jingo On BEST ANSWER

As stated in the commments, syncing the db does the trick here.