from django.db.models.fields.files import FieldFile
from catalogue import app_settings
from catalogue.constants import LANGUAGES_3TO2
from django.db.models.fields.files import FieldFile
from catalogue import app_settings
from catalogue.constants import LANGUAGES_3TO2
-from catalogue.utils import remove_zip, truncate_html_words, gallery_path
+from catalogue.utils import remove_zip, truncate_html_words, gallery_path, gallery_url
from celery.task import Task, task
from celery.utils.log import get_task_logger
from waiter.utils import clear_cache
from celery.task import Task, task
from celery.utils.log import get_task_logger
from waiter.utils import clear_cache
# Delete old fragments, create from scratch if necessary.
book.fragments.all().delete()
# Delete old fragments, create from scratch if necessary.
book.fragments.all().delete()