Skip to main content

Adds file plugin to django CMS

Project description

pypi build coverage python django djangocms

django CMS File is a set of plugins for django CMS that allow you to add files to your site You can either choose a single file or an entire folder.

It uses files managed by Django Filer.

This addon is compatible with Divio Cloud for easy installation.

preview.gif

Contributing

This is a an open-source project. We’ll be delighted to receive your feedback in the form of issues and pull requests. Before submitting your pull request, please review our contribution guidelines.

We’re grateful to all contributors who have helped create and maintain this package. Contributors are listed at the contributors section.

One of the easiest contributions you can make is helping to translate this addon on Transifex.

Documentation

See dependencies in the pyproject.toml file for additional dependencies:

  • Django Filer 2 or higher

Make sure django-filer is installed and configured appropriately.

Installation

For a manual install:

  • run pip install djangocms-file

  • add djangocms_file to your INSTALLED_APPS

  • run python manage.py migrate djangocms_file

Configuration

Note that the provided templates are very minimal by design. You are encouraged to adapt and override them to your project’s requirements.

This addon provides a default template for all instances. You can provide additional template choices by adding a DJANGOCMS_FILE_TEMPLATES setting:

DJANGOCMS_FILE_TEMPLATES = [
    ('feature', _('Featured Version')),
]

You’ll need to create the feature folder inside templates/djangocms_file/ otherwise you will get a template does not exist error. You can do this by copying the default folder inside that directory and renaming it to feature.

Running Tests

You can run tests by executing:

virtualenv env
source env/bin/activate
pip install -U pip tox
tox

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms_file-4.0.0.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_file-4.0.0-py3-none-any.whl (129.5 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_file-4.0.0.tar.gz.

File metadata

  • Download URL: djangocms_file-4.0.0.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for djangocms_file-4.0.0.tar.gz
Algorithm Hash digest
SHA256 5871fa0e81ad8a9452161dd38272184aa44a750ec1dc91aef8cc687d7699b708
MD5 55acd7bec37552c35e7f3ff3d455bdcd
BLAKE2b-256 12e6929b32ae0aa5623c8d66c7d2bb66eed2c21028492866a3d3d70054525abf

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_file-4.0.0.tar.gz:

Publisher: publish-to-live-pypi.yml on django-cms/djangocms-file

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file djangocms_file-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: djangocms_file-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 129.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for djangocms_file-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b5e2ed628d09b32d0340f4252e4c86015cd385dd09f1ab9e3d5c92cd32c41c8
MD5 eddee3f7927a8956c7cd34aad63fa480
BLAKE2b-256 954d2444a043a08fd2d003ce92cfbb2accf5c716854140722e89b2ab3ca27b81

See more details on using hashes here.

Provenance

The following attestation bundles were made for djangocms_file-4.0.0-py3-none-any.whl:

Publisher: publish-to-live-pypi.yml on django-cms/djangocms-file

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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