Skip to main content

A file plugin for django-fluent-pages

Project description

https://img.shields.io/pypi/v/fluentcms-file.svg https://img.shields.io/pypi/dm/fluentcms-file.svg https://img.shields.io/github/license/bashu/fluentcms-file.svg https://app.travis-ci.com/bashu/fluentcms-file.svg?branch=develop

A file plugin for django-fluent-contents

Installation

First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install fluentcms-file

Backend Configuration

First make sure the project is configured for django-fluent-contents.

Then add the following settings:

INSTALLED_APPS += (
    'fluentcms_file',
)

# The upload folder for all files
# Default: '.'
FLUENTCMS_FILE_UPLOAD_TO = 'uploads/'

The database tables can be created afterwards:

python ./manage.py migrate

Now, the FilePlugin can be added to your PlaceholderField and PlaceholderEditorAdmin admin screens.

Frontend Configuration

If needed, the HTML code can be overwritten by redefining fluentcms_file/file.html.

Contributing

If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)

Changes

2.0.1 (2021-11-21)

  • Add missing mo files.

2.0.0 (2021-11-20)

  • Added Django 3+ support.

  • Dropped Python 2.7 support.

  • Dropped Django 1.10 / 1.11 support.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page