Last active
October 13, 2017 10:54
-
-
Save sergeybe/685aedfaabfd9cdd3176 to your computer and use it in GitHub Desktop.
Path for image upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from stdimage.utils import UploadToUUID | |
class UploadTo(UploadToUUID): | |
""" | |
Creates path file like `path/abc/abcdefabcdefabcdefabcdefabcdefab.ext` | |
""" | |
path_pattern = os.path.join('%(path)s', '%(name).3s') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment