Re: Storing images in a database using Django.

2016-05-06 Thread Gabriel Marcondes
If you can't store upload files on your file system (for example, if you deploy to Heroku), you can use something like django-storages [0] to upload them to a S3 bucket. S3 is cheap (you can start with a free trial, and after that you'll pay like 1 or 2 cents/month for small projects) and reliable.

Re: Storing images in a database using Django.

2016-05-06 Thread m1chael
Storing images in a database will be loads of headache later. Like someone else said: store only the paths! Use FileField/imagefield On May 6, 2016 7:26 PM, "Adam Stein" wrote: > You can take a look at django-db-file-storage > > https://readthedocs.org/projects/django-db-file-storage/ > > In my c

Re: Storing images in a database using Django.

2016-05-06 Thread Adam Stein
You can take a look at django-db-file-storage https://readthedocs.org/projects/django-db-file-storage/ In my case, I was making something for myself and the hosting server doesn't allow me access to any kind of file system, so I found this. On Fri, 2016-05-06 at 15:42 -0500, Alex Heyden wrote: > Th

Re: Storing images in a database using Django.

2016-05-06 Thread Alex Heyden
There's an ImageField for use in models, but to really understand it, start with FileField https://docs.djangoproject.com/en/1.9/topics/files/ https://docs.djangoproject.com/en/1.9/ref/models/fields/#django.db.models.FileField The general idea is that you have a directory configured by Django's s

Re: Storing images in a database using Django.

2016-05-06 Thread André Machado
NEVER store images in DB, store its path so you can use it in a img tag later. =) Em sexta-feira, 6 de maio de 2016 16:06:08 UTC-3, Mlati Mudan escreveu: > > > Hi guys, I'm a TOTAL noob when it comes to django and web development for > that matter. I have an idea for a web app and I do have a ba