Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 3.0.6 instead.
Reason given by maintainers: Bug with m4v files

Zibanu Django Repository Package

zibanu.django.repository

This package is a repository files manager for Django. This package allows the management and storage of files and categories in media directory with the possibility of extract meta-data, generate thumbnails and others features.

Installation

Use the package manager pip to install

pip install zibanu-django-repository

Dependencies

This packages depends on zibanu-django 2.0.1 or newer version.

Usage

You can use this package with Django© framework from 3.2 version to 5.1. To do this, you have to add in your settings the package, and set the required settings.

INSTALLED_APPS = [
    "zibanu.django",
    "zibanu.django.repository"
]    

ZB_REPOSITORY_MAX_LEVEL_ALLOWED = 3
ZB_REPOSITORY_MULTILEVEL_FILES_ALLOWED = True
ZB_REPOSITORY_MIX_FILES_CATS_ALLOWED = False

Settings

This is the list of settings available in the package.

  • ZB_REPOSITORY_ROOT_DIR: Root directory under MEDIA_ROOT where the repository structure is stored. Default: "ZbRepository".
  • ZB_REPOSITORY_FILES_DIR: Directory name used to store repository files. Default: "ZbFiles".
  • ZB_REPOSITORY_THUMBNAILS_DIR: Directory name used to store generated thumbnails. Default: "ZbThumbnails".
  • ZB_REPOSITORY_ML_DIR: Directory name used for multi-level repository structure data. Default: "ZbML".
  • ZB_REPOSITORY_MAX_LEVEL_ALLOWED: Maximum category nesting level allowed in the repository. Default: 3.
  • ZB_REPOSITORY_MULTILEVEL_FILES_ALLOWED: Indicates whether files can be stored in nested levels. Default: True.
  • ZB_REPOSITORY_MIX_FILES_CATS_ALLOWED: Indicates whether files and categories can be mixed in the same level. Default: False.
  • ZB_REPOSITORY_HASH_METHOD: Hash algorithm used by the repository package for generated values. Default: "md5".
  • ZB_REPOSITORY_ICON_CLASSES: Dictionary of CSS icon classes used to represent file types. Default:
    {
        "default": "fa-regular fa-file",
        "pdf": "fa-regular fa-file-pdf",
        "word": "fa-regular fa-file-word",
        "excel": "fa-regular fa-file-excel",
        "powerpoint": "fa-regular fa-file-powerpoint",
        "image": "fa-regular fa-file-image",
    }
    
  • ZB_REPOSITORY_VERSIONING: Enables the file versioning system in the repository. Default: True.

Download files

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

Source Distribution

zibanu_django_repository-3.0.4.tar.gz (71.2 kB view details)

Uploaded Source

Built Distribution

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

zibanu_django_repository-3.0.4-py3-none-any.whl (104.6 kB view details)

Uploaded Python 3

File details

Details for the file zibanu_django_repository-3.0.4.tar.gz.

File metadata

  • Download URL: zibanu_django_repository-3.0.4.tar.gz
  • Upload date:
  • Size: 71.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for zibanu_django_repository-3.0.4.tar.gz
Algorithm Hash digest
SHA256 b1ca3ab8263112a48d7501363aea45ae3ecd76d2ad5d45a42cde48a662025023
MD5 05dc39be861764e81ed126dd9a7566da
BLAKE2b-256 4821d8e931fb0753b10735321f7cfda777f2b9e1e73748879dbba593cd29953d

See more details on using hashes here.

File details

Details for the file zibanu_django_repository-3.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for zibanu_django_repository-3.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 07b64a3e66c88c00a2d447e8c003224909e0cfc1c4de896c1edefa181ca18045
MD5 2b15b51976f5773385ef0cf22b0359a8
BLAKE2b-256 de5b5c6d8202e3eb313e378f2729a3c52e3fcbae9f7ebf1aab500a81b80eed07

See more details on using hashes here.

Release history Release notifications | RSS feed

3.0.6

2 files

3.0.5

2 files

This release

3.0.4 This release

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.1.5

2 files

2.1.3

2 files

2.1.2

2 files

2.1.0

2 files

2.0.9

2 files

2.0.8

2 files

2.0.7

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page