Try Django 1.9 - 28 of 38 - File Uploads with FileField and ImageField

preview_player
Показать описание
Try Django 1.9 - 28 of 38 - File Uploads with FileField and ImageField

Generally the topics will include:
- Django Project Setup
- Class Based Views (& some Function Based Views)
- Models, Model Forms, Forms, Form Validation
- Integrate Bootstrap front-end framework.
- Django Registration Redux for Authentication/Registration
- And More

We are Coding For Entrepreneurs [TeamCFE] and have built an entire library of content to help you master Django and other web technologies to launch real projects faster. Enroll today for as low as $20/month.

What Technology you'll learn in the Build a Django 1.8 Blog series:
-- Bootstrap (version 3.3): a powerful front-end framework used by thousands of sites around the world. Bootstrap makes it easier to have a responsive web application so it looks awesome on any mobile device and any desktop computer.

All of our tutorials have a simple goal in mind: get you building something real and quickly.
Рекомендации по теме
Комментарии
Автор

Saved my butt in reading endless amount of documentations or articles posted online for file uploading

steelwolf
Автор

DUUDE.and am i glad for your concise tutorials..Much love from the land of Kenya

denismwiti
Автор

Excellent Django tutorial. Clear and concise. Recommendation to all who want to learn Django. One suggestion though, blog rarely has only one category . Perhaps you could explain how to make a blog with more categories. Thank you for Django tutorial series.

NaprodajuRs
Автор

For anyone who has problems installing Pillow on Ubuntu, I used this and it resolved the problem I was having:
sudo apt-get install python-dev
sudo apt-get install libjpeg8-dev
sudo ln -s /usr/lib
pip install pillow

gargrubee
Автор

@CodingEntrepreneurs When saving the image using "instance.id" is saving it as "None" for new uploads

jeril
Автор

Could you instead, at 12:27, loop and return the last '.' and be guaranteed to make it safe?

othellopiano
Автор

it did work for me but i had to check another video too, thanks

Seyanhyriu
Автор

Hi, thanks a lot for this wonderful video

Rajonhossain
Автор

Why there is an error when I try to put the "request FILE or None" after the "instance = instance" in 5:08 ? Otherwise if I write before the "instance = instance", it works.Sorry that I don't really understand what the instance actually is? Any ideas guys? Thanks in advance.

zengzhaocheng
Автор

13:08 -- small resume if you have any troubles

BohdanKokovych
Автор

Liked because of the Tesla Model 3. JK. Great tutorial, danke!

mrvalvet
Автор

sorry if this question sounds dumb totally new with this.
With your function def upload_location(instance, the instance can access the id of the post. How does this work? I don't see anything passed into instance how does it access the id by using instance.id?

et
Автор

Thanks so much for putting together these videos; it has been a huge help to learning Django. One request would be to please pause more after you have finished typing before scrolling or moving on...just like 3 seconds or so. I am trying to follow along by typing what you type and I can barely pause the video in time because you are moving very quickly.

chrisreedy
Автор

Hi, thanks a lot for this wonderful video. I would like to know more about MEDIA file storage and STATIC files storage in production scenario. It would be great if you could share a video on production deployment. Thanks.

PikluDey
Автор

cool. a user complained to me that they couldn't copy and paste a screen shot into my php/html text area. so I'm looking for options to resolve the upgrade from plain old text area to robust area.

elvisbabah
Автор

Hello
Is there any way to add image field dynamically on button click or '+' click. Initially I just want to show one imagefield, but if I have more pictures to load, I should be able to add more image fields on my webpage dynamically. Can you please help?

eliezerborde
Автор

What I need to do, so I can upload img/gif inside my blog post ? Let's say I have the text : blah blah blah blha blha <img> bmlah blah blah <gif> etc.

iakovosbelonias
Автор

bro how can I upload multiple files with that single field

maheshchougule
Автор

Great tutorial! Thanks for comparing the FileField and ImageField :-)

brylie
Автор

Does anybody know how to make the images display in a uniform fashion? Right now I have images displaying with disparate sizes in the thumbnail

Rogarcai