you would use MEDIA_URL for calling the image path to be view in  your
template.

and the image will be upload to the media root folder..

On Mon, May 7, 2012 at 8:35 PM, Boris Shemigon <shemi...@gmail.com> wrote:

> MEDIA_ROOT<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-MEDIA_ROOT>
>  denotes
> an absolut path where your files are going to be stored.
> MEDIA_URL<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-MEDIA_URL>
>  is
> a relative url to the website's / that handles the media.
>
> For more details please you read the official 
> documentation<https://docs.djangoproject.com/en/dev/howto/static-files/>
> .
>
>
> On Mon, May 7, 2012 at 7:33 PM, Boris Shemigon <i...@boris.co> wrote:
>
>> MEDIA_ROOT<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-MEDIA_ROOT>denotes
>>  an absolut path where your files are going to be stored.
>> MEDIA_URL<https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-MEDIA_URL>is
>>  a relative url to the website's / that handles the media.
>>
>> For more details please you read the official 
>> documentation<https://docs.djangoproject.com/en/dev/howto/static-files/>
>> .
>>
>>
>>
>> On Mon, May 7, 2012 at 7:17 PM, atul khairnar <atulnkhair...@gmail.com>wrote:
>>
>>> Hi,
>>> I am writing this ImageViewer app, just to get involved with Django. I
>>> have used *ImageField* to store images in database. I want to load the
>>> images on the clients browser from Django server. But, I think, i can't
>>> distinguish between *media root* and *media url*. I have attached the
>>> project with the mail. Please check the code and help me out. sorry for my
>>> English.
>>>
>>> --
>>> Atul Khairnar
>>> College of Engineering , Pune
>>> Cell - (+91)9579289613
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> django-users+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to