Closed dbik closed 4 years ago
Hey I got this error:
File "/usr/local/lib/python3.8/site-packages/django_minio_backend/models.py", line 177, in url expires=get_setting("MINIO_URL_EXPIRY_HOURS", timedelta(days=7)) # Default is 7 days NameError: name 'timedelta' is not defined
An import like this in models.py should fix it..?
from datetime import timedelta
Hi @dbik , Yes, adding from datetime import timedelta should fix that problem.
Hey I got this error:
An import like this in models.py should fix it..?