Skip to main content

Django hex storage is add-on on the top of Django file system. It has improvements that cover: international filenames (processed with pinyin module) and the same file names (django adds underscore to same filename, we add HEX hash) - hence the name :)

Project description

File system storage with support of international file names and same file names.

For example:

  1. You can upload to your server files with russian or turkish names. Such files will be urlified.

    Документ 1.doc becomes document_1.doc

  2. You can upload files with same names. Such files will have names with different random hex postfixes.

    Different files 1.png and 1.png becomes 1.png and 1_1BAC45.png rather than 1.png and 1_.png in Django default filestorage

Installation:

  1. Put hex_storage to your INSTALLED_APPS in your settings.py within your django project.

    INSTALLED_APPS = [
        ...
        'hex_storage',
        ...
    ]
  2. Set your default file storage in your settings.py:

    DEFAULT_FILE_STORAGE = 'hex_storage.HexFileSystemStorage'

Classifiers:

Utilities

Project details


Download files

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

Source Distribution

redsolutioncms.django-hex-storage-0.1.0.tar.gz (40.5 kB view hashes)

Uploaded Source

Supported by

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