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
import sys | |
import six | |
import csv | |
import datetime | |
from locust import HttpLocust, events, runners | |
def save_to_file(*args, **kwargs): | |
""" |
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
""" | |
Simple way to re-upload files on django. | |
Using: | |
Django>1.9 | |
django-storages>1.5 | |
boto3 | |
""" | |
from django.core.files import File | |
from my_package.models import ModelWithImage |