Skip to main content

Django swiftstorage for Swift API

Project description

django-swiftstorage

Provides a custom storage system for Django to store and retrieve files in OpenStack Swift.

Configuration

DEFAULT_FILE_STORAGE = "swiftstorage.storage.SwiftStorage"

OS_USERNAME = "<openstack username>"
OS_PASSWORD = "<openstack password>"
OS_AUTH_URL = "<openstack keystone authenticator URL>"
OS_REGION_NAME = "<openstack region name>"
OS_TENANT_NAME = "<openstack tenant name>"

SWIFT_CONTAINER_NAME = # Created if does not exist.

Testing

Tests can be run with python setup.py test. To make things easier, use tox.

tox can be installed with pip or via the python-tox package for Debian/Ubuntu.

Then simply call tox to run the tests in a virtual environment.

Project details


Download files

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

Source Distribution

django-swiftstorage-1.1.0.tar.gz (8.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page