From 75f93a3f7854a7383febd047391e2bfd4caceee0 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 20 Mar 2014 17:49:16 +0200 Subject: Initial git fork of django-storages --- examples/libcloud_project/test_storage.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/libcloud_project/test_storage.py (limited to 'examples/libcloud_project/test_storage.py') diff --git a/examples/libcloud_project/test_storage.py b/examples/libcloud_project/test_storage.py new file mode 100644 index 0000000..18d1b72 --- /dev/null +++ b/examples/libcloud_project/test_storage.py @@ -0,0 +1,14 @@ +import sys, os +PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) +sys.path.append(PROJECT_PATH) + +from django.core.management import setup_environ +import settings +setup_environ(settings) + +from storages.backends.apache_libcloud import LibCloudStorage + +# test_google_storage is a key in settings LIBCLOUD_PROVIDERS dict +store = LibCloudStorage('test_google_storage') +# store is your django storage object that will use google storage +# bucket specified in configuration \ No newline at end of file -- cgit v1.3.1