You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where are you running this code? If you run in EC2, the credentials will be periodically obtained from instance metadata and are available to boto3, you don't need to provide them. If you run in Lambda, likewise they will be in the environment. There is an issue with the latest version where the session token is not fetched and things will break but #1399 fixes it and the previous version was fine as well.
If you intend to use the standard variable names of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, the s3 storage backend will automatically look up and resolve these variables (https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html). So, you can remove those at least from the configuration and still get a working result, and this will ensure they are not kept in the migration file.
settings.py :
Models.py
Migration file:
Is this the correct way of passing the storage to FileField ?
The text was updated successfully, but these errors were encountered: