Commits

Anonymous committed 0db5aa6

Added the option to set the connection kwargs inside the django settings file

  • Participants
  • Parent commits 2b44d79

Comments (0)

Files changed (1)

File storages/backends/mosso.py

         self.username = username or settings.CLOUDFILES_USERNAME
         self.api_key = api_key or settings.CLOUDFILES_API_KEY
         self.container_name = container or settings.CLOUDFILES_CONTAINER
-        self.connection_kwargs = connection_kwargs or {}
+        self.connection_kwargs = connection_kwargs or settings.CLOUDFILES_CONNECTION_KWARGS or {}
 
     def __getstate__(self):
         """