{"repo":"codingjoe/django-dynamic-filenames","free":true,"listed":false,"github":"https://github.com/codingjoe/django-dynamic-filenames","clone":"git clone https://github.com/codingjoe/django-dynamic-filenames.git","description":"Write advanced filename patterns using the Format Format String Syntax.","language":"Python","stars":79,"topics":["django","django-file-upload","file-upload","python","django-storages","hacktoberfest"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Documentation Issues Changelog Funding 💚 Django Dynamic Filenames Write advanced filename patterns using the Format String Syntax. Sponsors Getting Started Installation Samples Basic example: Auto slug example: Features Field names - ext : File extension including the dot. - name : Filename excluding the folders. - model name : Name of the Django model. - app label : App label of the Django model. - instance : Instance of the model before it has been saved. You may not have a primary key at this point. - uuid : UUID version 4 that supports multiple type specifiers. The UUID will be the same should you use it twice in the same string, but different on each invocation of the upload to callable. The type specifiers allow you to format the UUID in different ways, e.g. {uuid:x} will give you a with a hexadecimal UUID. The supported type specifiers are: - s : String representation of a UUID including dashes. - i : Integer representation of a UUID. Like to UUID.int . - x : Hexadecimal (Base16) representation of a UUID. Like to UUID.hex . - X : Upper case hexadecimal representation of a UUID. Like to UUID.hex . - base32 : Base32 representation of a UUID without padding. - base64 : Base64 representation of a UUID without padding. [!WARNING] Not all file systems support Base64 file names. All type specifiers also support precisions to cut the string, e.g. {{uuid:.2base32}} would only return the first 2 characters of a Base32 encoded UUID. Type specifiers You can also use a special slu","default_branch":null,"files":null,"tree":[],"storefront":"/r/codingjoe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codingjoe/django-dynamic-filenames/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}