hovel/pybbm — Issue #5: Default.py PYBB_DEFAULT_AVATAR_URL
Author: jutenga
Created: 2012-02-16 14:29:06+00:00
State: open

Hi !

I think we can't define our own PYBB_DEFAULT_AVATAR_URL
Because in defaults.py we have this line :
line 21 :
PYBB_DEFAULT_AVATAR_URL = getattr(settings, 'STATIC_URL', '') + 'pybb/img/default_avatar.jpg'

Possible solution :

PYBB_DEFAULT_AVATAR_URL = getattr(settings,'PYBB_DEFAULT_AVATAR_URL',getattr(settings, 'STATIC_URL', '') + 'pybb/img/default_avatar.jpg')