I want to upload my files based on the example Need a minimal Django file upload example, however I want to store the files not locally, but on another server with the use of FT
Try this
from storages.backends.ftp import FTPStorage
fs = FTPStorage()
DEFAULT_FILE_STORAGE = 'storages.backends.ftp.FTPStorage'
FTP_STORAGE_LOCATION = 'ftp://user:password@localhost:21'
It looks like your import is wrong. If the file is named ftp.py
the import should be:
from ftp import FTPStorage
Depending on where the file is relatively to your PYTHONPATH you might need to add more, e.g.:
from your_app.ftp import ...