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
…
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…
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…
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…
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…
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…
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…
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…
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…
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:
:…
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…
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 =…
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…
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…
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…