[omaha] Static vs media files in django

Steve Young wereapwhatwesow at gmail.com
Wed May 28 01:00:00 CEST 2014


Thanks.  How about organizing the files - eventually they will be tagged to
make it simple for users to find images and add them to new cards.  Should
I put all the images in one folder or categorize them with sub-folders?
Or even put the images in a database?

Steve


On Tue, May 27, 2014 at 3:38 PM, Jeff Hinrichs - DM&T <jeffh at dundeemt.com>wrote:

> If you don't not need to distinguish between the images you supply and user
> upload images then yes.
> caveat: If some subset of the images are not for cards but for the site in
> general, I'd put that subset in static.
>
>
> On Tue, May 27, 2014 at 9:37 AM, Steve Young <wereapwhatwesow at gmail.com
> >wrote:
>
> > Using Django 1.7 building a flashcard app.  Currently I have about 1000
> > images - one per card, and images can be used on multiple cards.  Later
> on
> > users may be able to upload images also.  Django seems to have 2 basic
> ways
> > to serve static files - Static and Media.  From what I gather static is
> for
> > css, logos, and other admin created files, and media is for user uploaded
> > content.?
> >
> > I am thinking Media is the way to go?  If you have any other suggestions
> on
> > handling images please chime in.
> >
> > Thanks.
> >
> > Steve
> > _______________________________________________
> > Omaha Python Users Group mailing list
> > Omaha at python.org
> > https://mail.python.org/mailman/listinfo/omaha
> > http://www.OmahaPython.org
> >
>
>
>
> --
> Best,
>
> Jeff Hinrichs
> 402.218.1473
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> https://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org
>


More information about the Omaha mailing list