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:
You can upload to your server files with russian or turkish names. Such files will be urlified.
Документ 1.doc becomes document_1.doc
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:
Put hex_storage to your INSTALLED_APPS in your settings.py within your django project.
INSTALLED_APPS = [ ... 'hex_storage', ... ]
Set your default file storage in your settings.py:
DEFAULT_FILE_STORAGE = 'hex_storage.HexFileSystemStorage'
Classifiers:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for redsolutioncms.django-hex-storage-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e88f53ba60c6701045ecc2484f727d0727304c5b1ee9dbbe1c10e2f8012657d7 |
|
MD5 | ac91915a697f8c06e3d1b994dc9088e9 |
|
BLAKE2b-256 | bee9beb49b059457439742cf5fd2d41af544ead22c4b38307514bae3530ddca3 |