Thank you very much!
it worked!
Both solutions combined.
I'm still trying to understand what happened but thank you!! :)

2015-02-19 16:18 GMT+00:00 Tom Lockhart <tlockhart1...@gmail.com>:

> On Feb 19, 2015, at 8:03 AM, Valéria Pacheco <valeriacspach...@gmail.com>
> wrote:
>
> Hello! I'm a newbie in Django and Python, I'm trying to use the ImageField
> property.
> The problem is represented in the attachment images.
> The uploading of the image works fine, but when trying to access it, the
> link seems to be broken.
> I already checked for answers online but neither seems to work.
>
>
> The URL you are trying seems to be
> /admin/backOffice/product/12/media/images/teste_processo.jpg/ which is not
> likely to work.
>
> In my development server settings.py I’ve got the following:
>
> MEDIA_URL = "/media/"
> MEDIA_ROOT = os.path.join(PROJECT_ROOT, *MEDIA_URL.strip("/").split("/"))
>
> and I’ve made a media/ directory inside my project area. Then you can find
> the image with a URL something like:
>
> /media/images/teste_processo.jpg
>
> (which may already be the case for you; look for the uploaded file and use
> a URL prefixed with “/media” then the path to the file).
>
> hth
>
> - Tom
>
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/8cf5041c-2ad7-40ec-9243-d4e1a928013e%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/8cf5041c-2ad7-40ec-9243-d4e1a928013e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
> <teste.bmp><teste2.bmp>
>
>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/Px6Iqhl-ge8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@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/F7228E20-08EF-4841-BFF2-AD5FA064CF82%40gmail.com
> <https://groups.google.com/d/msgid/django-users/F7228E20-08EF-4841-BFF2-AD5FA064CF82%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cumprimentos,
Valéria Pacheco

*contacto móvel *: 913473039



*:)*

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/CAMbyHecNqF7Ra3yFGjscnbFPZmVtmqWbLNNjjruCDUOzTVsb4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to