MEDIA_URL is a prefix that you will put in front of the URL media files. E.g. you set your webserver to load such files under the /media/ URL, like www.example.com/media/my-video.webm. Using different storage backends, like an Amazon S3 bucket, you may want to set this to the bucket's URL.
However, you can even outsource avatar handling to some provider, like Gravatar (which is a totally different topic, though).
Do you save your avatar images there? Do you prepend MEDIA_URL to the avatar's src=""? How do you display the image by the way?
These are the quick questions that came into my mind without knowing your setup…
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d1078810-e3b2-46e6-b6ca-15992d1f6ada%40googlegroups.com.
MEDIA_ROOT = os.path.join(BASE_DIR, '/media/')MEDIA_URL = '/media/'It should, yes. But instead hardcoding /media in your templates, use {{ MEDIA_URL }}
os.path.join(BASE_DIR, 'myApp/media/')os.path.join(BASE_DIR, '/media/')
os.path.join(BASE_DIR, 'media/')