Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stefanfoulis
Created May 24, 2015 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanfoulis/dda6b4a2ba91a615b9bb to your computer and use it in GitHub Desktop.
Save stefanfoulis/dda6b4a2ba91a615b9bb to your computer and use it in GitHub Desktop.
accessing the django file object
# f is the File model
f = filer.models.File.objects.get(...)
# f.file is a django file field (for images it's an easy-thumbnails image field)
f.file
@stefanfoulis
Copy link
Author

@Boogymanx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment