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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f99ff052028be41207143cb7a81fc1281f34d3c7acd3e6c0ecf5b85975dd3f2 |
|
MD5 | 324eb3a4c8baf82bb064ae4ade6cef2e |
|
BLAKE2b-256 | 3ef663b308fdad81cf44380e30feb3b08aa4d0c2bfb45cce02715fd100a17b38 |