rangolio/backend/apimanager/custom_storage.py

8 lines
303 B
Python

from django.core.files.storage import FileSystemStorage
class CustomStorage(FileSystemStorage):
def __init__(self, location=None, base_url=None):
location = location or 'deploy/data/' # Define your custom path
base_url = base_url or ''
super().__init__(location, base_url)