Yeah, there is a test image to do the work. But I'm not using HTML elements 
to see it: I'm trying to directly see it with the URL, like when you open a 
Twitter image in a new tab.

About the setup...
MEDIA_ROOT = os.path.join(BASE_DIR, '/media/')
MEDIA_URL = '/media/'
So *localhost:8000/media/images/avatar.jpg* would work, isn't it?


El sábado, 25 de julio de 2015, 23:14:58 (UTC+2), Gergely Polonkai escribió:
>
> 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…
> On 25 Jul 2015 22:59, <[email protected] <javascript:>> wrote:
>
>> Nah, I just want to have an avatar inside, to get easy.
>>
>> And I tried the media docs a few hours ago, but for some reason it 
>> doesn't work. I've to set specific URL in *urls.py* of the app? (Also 
>> notice that I use another folder inside media, but I don't think that's the 
>> problem).
>>
>> El viernes, 24 de julio de 2015, 13:47:26 (UTC+2), [email protected] 
>> escribió:
>>>
>>> I'm doing a little app that consists of a web page were users submits 
>>> their jokes (
>>> https://github.com/RompePC/django-muro_humoristas/tree/feature). I had 
>>> finished the models (a little overview would help), but I have one question.
>>>
>>> I want to use an avatar field for the users: however, I don't understand 
>>> well for what is *MEDIA_URL* (also, I would want to know where you 
>>> would put your *MEDIA_ROOT*, in a folder of the app, or in a directory 
>>> as one that gives the example 
>>> https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-MEDIA_ROOT
>>> ).
>>>
>>> Thanks (and sorry if anyone doesn't understand spanish hehe).
>>>
>>  -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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
>>  
>> <https://groups.google.com/d/msgid/django-users/d1078810-e3b2-46e6-b6ca-15992d1f6ada%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/4b1e02b3-abc7-4ea9-a6f6-05b88574022d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to