Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django storage for SoftLayer Cloud Storage

Project Description

Django storage for SoftLayer Cloud Storage

This package uses django-cumulus ( and softlayer-object-storage-python (

Link to github repository:


Add the following to your project’s (your SoftLayer credentials):

    'USERNAME': 'YourUsername', # your SoftLayer user name
    'API_KEY': 'YourAPIKey',    # SoftLayer api key
    'CONTAINER': 'ContainerName' # SoftLayer container(folder) name
    'NETWORK': 'private', # Paid 'private' or free 'public' network is available

CLOUD_FILE_STORAGE = 'django_softlayer.SoftLayerStorage'


To use this storage:

  • import storage class, and create your own

    from django_softlayer import SoftLayerStorage
    from django.utils.functional import LazyObject
    from django.conf import settings
    class MyStorage(LazyObject):
        def _setup(self):
            self._wrapped = get_storage_class(settings.CLOUD_FILE_STORAGE)()
  • Then you can use it in

    from storage import MyStorage
    class MyModel(Model):
        file = models.FileField(storage=MyStorage())
  • That’s all.

To upload files to storage from folder, check for the command usage:

./ syncstatic --help


To run tests:

./ test django_softlayer

Management commands


Uploads directories to the cloud storage saving directory structure:

python syncstatic


  1. –mediaroot - A source directory to copy files from, e.g. “/home/djangoprojects/myproject/media”. Defaults to settings.MEDIA_ROOT.
  2. –noreplace - Skip and do not replace existing files in the storage. Default is False.
  3. –mask - A file mask, e.g. *.ext. Defaults to: *.mp3
  4. -v - higher verbosity is available


Prints information to console about empty or non existing files present in database but not at cloud files storage:

python get_missing_files


–app_model_field - String containing dot separated app, model and field name. Example: myapp.User.file

NOTE: this options can be defaulted to CMD_MISSING_FILES_SETTINGS variable in

  • When CMD_MISSING_FILES_SETTINGS variable is in, you can search a set of app.model.field to search for empty files.
  • When using –app_model_field option, you can only specify one app.model.field per command.

Written by the development team of Arpaso company:

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-softlayer-0.2.tar.gz (1.0 MB) Copy SHA256 Checksum SHA256 Source Aug 7, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting