Mario, thank you very much! You just made my day.
Regards,
Lloyd
On Fri, Nov 5, 2010 at 1:23 PM, Mário Neto wrote:
> instead this:
> MEDIA_URL = os.path.realpath(PROJECT_PATH + '/media/')
> try:
> MEDIA_URL = '/media/'
>
> 2010/11/5 Sithembewena Lloyd Dube
>
>> Update: I added AVATAR_STORAGE_D
instead this:
MEDIA_URL = os.path.realpath(PROJECT_PATH + '/media/')
try:
MEDIA_URL = '/media/'
2010/11/5 Sithembewena Lloyd Dube
> Update: I added AVATAR_STORAGE_DIR = MEDIA_ROOT to my settings.py file.
>
> When I load the page, the avatar's src is
> "C:/Websites/TPFRepository/projectname/media
Update: I added AVATAR_STORAGE_DIR = MEDIA_ROOT to my settings.py file.
When I load the page, the avatar's src is
"C:/Websites/TPFRepository/projectname/media/username/image.jpg" - which is
correct. if i paste that into Windows Explorer, I do find the image.
Still, it is not displayed on the page
Hi all,
I installed the django-avatar app in my project and, in a template, i have
the {% load avatar_tags %} and {% avatar user 65 %} template tags. When I
load the page and view source, the avatar's alt tag is correct but the image
src is wrong. It appears relative to the template's directory in
4 matches
Mail list logo