Hello Yurij,

You can start reading these articles:

https://coderwall.com/p/bz0sng/simple-django-image-upload-to-model-imagefield

https://docs.djangoproject.com/en/1.11/topics/http/file-uploads/

https://docs.djangoproject.com/en/1.11/howto/static-files/#serving-files-uploaded-by-a-user-during-development


Karol


On 07/09/2017 11:58 AM, Юра Доренский wrote:
Всем доброго дня.

Встал вопрос как реализовать картинки в Django.

С текстом всё понятно создается модель, и потом вытаскивается с базы
А с картинками ка быть можно ли их тоже забить в базу а потом подставлять в html

Или их надо хранить в проекте в папках и потов в html указывать путь к картинке

Или может есть какие-то другие варианты.

Спасибо
--
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 <mailto:django-users+unsubscr...@googlegroups.com>. To post to this group, send email to django-users@googlegroups.com <mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/51c75dd1-2b10-482c-94fc-ce2b1968e89d%40googlegroups.com <https://groups.google.com/d/msgid/django-users/51c75dd1-2b10-482c-94fc-ce2b1968e89d%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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c45be997-0a52-e930-2f26-9d91fc4990cd%40fossilgroup.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to