Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top