Questions tagged [django-filer]

File and Image Management Application for Django.

Makes handling of files and images a breeze.

See github project.

78 questions
1
vote
2 answers

Django file field how to fill with stream io

I'm trying to attach in a model a file that is currently not on the disk, but exist in memory. The model use django-filer, if I pass a regular file it works, with io stream it fails. def test_save_bytesio(): from PIL import Image import io from…
user2239318
  • 2,578
  • 7
  • 28
  • 50
1
vote
2 answers

500 error when uploading files with Filer to S3 using boto3 and django-storages on Elastic Beanstalk

I receive the following 500 http error when attempting to upload a file via the django-cms Filer admin in my app deployed to Elastic Beanstalk: In browser console, coming from fileuploader.min.js:26: POST…
lusk
  • 541
  • 5
  • 21
1
vote
1 answer

Accessing custom thumbnail options in templates

In a Django CMS project with Filer enabled, the Admin dashboard for Filer allows you to create custom Thumbnail Options, similar to defining an alias using easy-thumbnails. How do I access these options in templates? {{ obj.image.thumbnails }}…
lusk
  • 541
  • 5
  • 21
1
vote
1 answer

What's the rationale of using properties instead of fields within the File model of django-filer

I tried to do filtering for the extension field, which is actually not a field at all as the following example suggests. For the sake of this example, let's imagine we have a running Django with django-filer installed and some file already…
itsafire
  • 5,607
  • 3
  • 37
  • 48
1
vote
0 answers

How to override cmsplugin-filer templates in Django CMS

I have tried to override the default templates in cmsplugin-filer but I had no luck so far. Anytime we use the Link plugin within the CMS there is an option where we can select the template but it always says Default. How can I add templates to that…
Ander
  • 5,093
  • 7
  • 41
  • 70
1
vote
1 answer

django filer dumpdata missing images

I'm having an issue trying to migrate content from my local development django cms with sqlite3 backend to AWS, with postgres. I'm using the following command to dump all the page data, titles, plugins and presumably, the filer images manage.py…
vasdee
  • 153
  • 7
1
vote
1 answer

Fixing request entity too large error under django/apache/mod_wsgi for file uploads

I after much gnashing of teeth found out my uploads were working just that I was getting a request entity to large 413 error I wasn't seeing. The django app is running under apache mod_wsgi, and I am no apache guru so i am not sure what I need to…
Codejoy
  • 3,722
  • 13
  • 59
  • 99
1
vote
3 answers

'Folder' object has no attribute 'get_deferred_fields' when trying to create folder in django-cms filer

I created a plugin with a field in models: picture = FilerImageField(related_name="gallery_image") Now, when I try to add the plugin to a placeholder, window opens when I can add a picture. So I click "Add file" and new page opens with a list of…
Martinez
  • 115
  • 8
1
vote
1 answer

Django filer IntegrityError at /admin/filer/folder/

So i have django 1.8.9 and django-filer and i started running into this problem insert or update on table "filer_clipboard" violates foreign key constraint "filer_clipboard_user_id_2b30c76f2cd235df_fk_auth_user_id" DETAIL: Key (user_id)=(67) is not…
psychok7
  • 5,373
  • 9
  • 63
  • 101
1
vote
1 answer

How to programatically move/categorize django-filer files?

We use django-filer 0.9.8 for our image uploads. Now we'd like to programatically add some images to the catalog and move them to filter category. I managed to get the creation and saving of a FilerImage working, but when I check the admin all the…
Bartvds
  • 3,340
  • 5
  • 30
  • 42
1
vote
1 answer

How to crop an image selected with django-filer in django admin

I use django-filer to manage images. How can I crop and image after selecting one for a FilerImageField?
Petri Lehtinen
  • 1,995
  • 2
  • 17
  • 22
1
vote
1 answer

Django test model with FilerImageField

All new to Django, I want to write tests for an IndexView and a DetailView in analogy to the Django tutorial. I have a model that contains a FilerImageField as mandatory field (blank=False). In order to test my views related to that model, I want…
creimers
  • 4,975
  • 4
  • 33
  • 55
1
vote
1 answer

Django-filer get absolute URL and Django Celery Upload

Is it possible to get the absolute URL of a file just uploaded with Django Filer? My problem is this: I'm using Django Filer to upload music. I then want to submit this file to Django Celery to upload to Mixcloud using their API. But.. I can't…
phyichai
  • 45
  • 7
1
vote
1 answer

django-filer - upload button not working on Firefox but fine on Chrome and Opera

I am running django 1.6, django-storages and s3. All of these seem to be working fine. When I upload an image it goes to s3 as expected. I am trying to use django-filer, however I can't upload any images. When I click upload, nothing happens at…
user1026169
  • 5,345
  • 5
  • 21
  • 35
1
vote
1 answer

Django. How to programatically rename files uploaded using django-filer

Let's say I am selecting 10 files to be uploaded using django-filer. They initially have very random names. I'd like to have a set of rules according to which they ought to be renamed and only then passed for further processing (thumbnails etc.). I…
gwaramadze
  • 4,523
  • 5
  • 30
  • 42