I want to do a SuspiciousFileOperation which django disallows by default.
SuspiciousFileOperation
I am writing a command (to run via manage.py importfiles) to impo
manage.py importfiles
Check if there is slash before your filepath
file_item = models.FileField(upload_to=content_file_name) def content_file_name(username, filename): return '/'.join(['content', username, filename])
Note here "content" not "/content". That was the problem for me.
"content"
"/content"