Questions tagged [django-filer]

File and Image Management Application for Django.

Makes handling of files and images a breeze.

See github project.

78 questions
2
votes
2 answers

Django filler not working. ImportError: cannot import name mixins

Im calling migrate on my manage.py but it is not working. I am running Ubuntu 18.04 here is the error:" Traceback (most recent call last): File "/snap/pycharm-professional/68/helpers/pycharm/django_manage.py", line 52, in
HellOfACode
  • 1,675
  • 3
  • 18
  • 38
2
votes
1 answer

How to extend Django filer image model by category field?

I have problems with extending Django's filer, probably because my knowledge of Django is not sufficient yet. Basically, what I would like to achieve is to extend Django filer image model to be able to add a category to images. Could someone help me…
Mike Olszak
  • 373
  • 6
  • 12
2
votes
1 answer

Django 1.11 Image Gallery with Django Filer

Problem I need to display a gallery of images on a product page. This worked when we were at Django 1.6, but have since upgraded to Django 1.11 (Big Process). I am now stuck at how to get this to work within the new environment. Right now clicking…
BMoe872
  • 141
  • 2
  • 12
2
votes
0 answers

django-filer: FilerFile model not being saved; NoneType error raised instead. Why?

Hi I'm trying to test mock django-filer save() that trigger post_save signal. models.py import filer.fields.file import FilerFileField class DeliveryInvoice(TimeStampedModel): invoice_excel = FilerFileField(null=True, blank=True) tests.py from…
Bossam
  • 744
  • 2
  • 9
  • 24
2
votes
1 answer

Django-CMS FilerImageField: Validator function

I'm trying to write a validator for a Django-CMS FilerImageField. The following validator function is used for a default ImageField. When I copy it to the new Model, it will crash with the message 'int' object has no attribute 'file'. Obviously a…
mch
  • 1,259
  • 15
  • 23
2
votes
1 answer

OSError: [Errno 13] Permission denied while setting up django-filer

I installed django-filer and am now testing out the upload function, but when I try to upload a file, I get the following error: [Fri Jul 10 11:32:20 2015] [error] ERROR Internal Server Error: /admin/filer/clipboard/operations/upload/ [Fri Jul 10…
sashafr
  • 33
  • 6
2
votes
1 answer

How to retrieve absolute urls to thumbnails generated via django-filer easy-thumbnails

I am using following template tags to display thumbnails in my templates {% load thumbnail %} {% thumbnail obj.image 250x250 crop %} thumbnail template tag returns relative urls to thumbnail image files as expected. But I would like it to return…
negativefix
  • 517
  • 1
  • 4
  • 9
2
votes
1 answer

How to fetch the images I have uploaded to Django Admin using Django Filer?

I am using the Django Filer to be able to upload multiple images in the Django Admin panel. However, I can't find out how I can fetch these images, so that I can render them in a template/HTML-file. I know how to fetch images when I am uploading the…
mrborgen
  • 401
  • 5
  • 10
2
votes
2 answers

django filer - ImportError: cannot import name mixins

I have a django 1.4 installation and I have django-cms running. I'm try to install filer but when I syncdb or runserver I keep having this error. from filer.models import mixins ImportError: cannot import name mixins In my setting.py I…
Alex Garulli
  • 737
  • 1
  • 12
  • 29
1
vote
1 answer

An admin for model "CustomUser" has to be registered to be referenced by FolderAdmin.autocomplete_fields

I am trying to install django-filer and after following the installation docs(pip install, add to INSTALLED_APPS etc), when I try run my dev server I get the following error in the terminal... ERRORS: :…
Dixan
  • 41
  • 6
1
vote
0 answers

Use production media files in development - Django

I have a blog made with Django (and Django-CMS). Some times, when working in development, I make some changes and it would be nice to see how those changes that I'm doing look like with the actual media files that I have in production. So today I…
revliscano
  • 2,227
  • 2
  • 12
  • 21
1
vote
1 answer

How to stop creation of new File when call save in django?

I am using Django Model like : pickle_embedding_file=models.FileField(upload_to='pickle_embedding/',blank=True,null=True) Whenever I call below function: def set_pickle_embeddingFile(self,dict): content = pickle.dumps(dict) fid =…
1
vote
1 answer

Django - CKeditor dynamic image size based on client device

I'm trying to develop a blog style website and I use Django as web framework, CKeditor as wygiwys and Filer for file management (linked with CKeditor with django-ckeditor-filebrowser-filer). It's all working, but the problem is that I can't control…
1
vote
2 answers

TypeError: __init__() missing 1 required positional argument: 'on_delete' (Django 2)

I need to add the required argument: on_delete = models.CASCADE to the following code. Otherwise, I get the following TypeError: __init__() missing 1 required positional argument: 'on_delete'. How and where should I do this? class…
user2901792
  • 677
  • 3
  • 7
  • 24
1
vote
2 answers

Django-Filer Canonical URLS not working properly (Page not Found)

I am using Django-Filer in my admin on a Django web project which is hosted in PythonAnywhere. I have gone through the installation instructions but I am having trouble accessing the canonical urls the Filer makes for each file. It seems I am being…
JcoOnline
  • 243
  • 2
  • 13