I recently implemented this using a third party library which in turn
proved to be more beneficial than expected, and made things very flexible &
effortless. The implementation did not take more than 2 hours (installation
+ integration into project + interaction with my existing model-structure).
I would highly recommend this library:

Library Name  : django-ajax-uploader
Link to Github : https://github.com/GoodCloud/django-ajax-uploader

PS: It also tackles that annoying 'POST FILES via AJAX' issue as it does
use AJAX!

Cheers!

On Wed, Oct 15, 2014 at 3:20 PM, Collin Anderson <[email protected]>
wrote:

> Hi Devin,
>
> It's usually recommended to save the file on the filesystem, but reference
> it using the database using models.FileField().
>
> https://docs.djangoproject.com/en/dev/ref/models/fields/#filefield
>
> You'll need to set MEDIA_ROOT and MEDIA_URL.
>
> Collin
>
>  --
> 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/efee8ec5-88bf-4f1a-a74b-9427220bf607%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/efee8ec5-88bf-4f1a-a74b-9427220bf607%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/CAFki%3DaVPievyM67G39m_CDXsQhShK1nE6kKqg1X7-7g8awSStQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to