Created
July 13, 2016 18:07
-
-
Save edgabaldi/01c9c547a5ebaa8a68e79f37731065e5 to your computer and use it in GitHub Desktop.
Mocking Django Filefiled
This file contains hidden or 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 django.core.files import File | |
s = SimpleModel() | |
s.audio_file = File(open("media/testfiles/testaudio.wav")) | |
s.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment