richleland / django-cumulus (http://packages.python.org/django-cumulus/)
An interface to Rackspace Cloud Files through Django.
Clone this repository (size: 76.4 KB): HTTPS / SSH
$ hg clone http://code.richleland.com/django-cumulus
| commit 42: | 3a86721b86a8 |
| parent 41: | 38c15e66296a |
| branch: | default |
| tags: | 0.3 |
Bumped version to 0.3. Updated docs.
Changed (Δ938 bytes):
raw changeset »
docs/changelog.rst (5 lines added, 0 lines removed)
docs/conf.py (2 lines added, 2 lines removed)
docs/index.rst (40 lines added, 4 lines removed)
setup.py (2 lines added, 2 lines removed)
Up to file-list docs/changelog.rst:
1 |
1 |
changelog |
2 |
2 |
========= |
3 |
3 |
|
4 |
Version 0.3, 17 May 2010 |
|
5 |
************************** |
|
6 |
||
7 |
* Added syncstatic management command |
|
8 |
||
4 |
9 |
Version 0.2.3, 03 May 2010 |
5 |
10 |
************************** |
6 |
11 |
| … | … | @@ -45,9 +45,9 @@ copyright = u'2010, Rich Leland' |
45 |
45 |
# built documents. |
46 |
46 |
# |
47 |
47 |
# The short X.Y version. |
48 |
version = '0. |
|
48 |
version = '0.3' |
|
49 |
49 |
# The full version, including alpha/beta/rc tags. |
50 |
release = '0. |
|
50 |
release = '0.3' |
|
51 |
51 |
|
52 |
52 |
# The language for content autogenerated by Sphinx. Refer to documentation |
53 |
53 |
# for a list of supported languages. |
Up to file-list docs/index.rst:
| … | … | @@ -14,7 +14,7 @@ The aim of django-cumulus is to provide |
14 |
14 |
Installation |
15 |
15 |
************ |
16 |
16 |
|
17 |
To install the latest release (currently 0. |
|
17 |
To install the latest release (currently 0.3) from PyPI using pip:: |
|
18 |
18 |
|
19 |
19 |
pip install django-cumulus |
20 |
20 |
|
| … | … | @@ -24,11 +24,19 @@ To install the development version using |
24 |
24 |
|
25 |
25 |
Or you can download the tarball and install:: |
26 |
26 |
|
27 |
wget http://bitbucket.org/richleland/django-cumulus/get/0.2.3.tar.gz |
|
28 |
tar -xzvf django-cumulus-0.2.3.tar.gz |
|
27 |
wget http://bitbucket.org/richleland/django-cumulus/get/0.3.tar.gz |
|
28 |
tar -xzvf django-cumulus-0.3.tar.gz |
|
29 |
29 |
cd django-cumulus |
30 |
30 |
python setup.py install |
31 |
31 |
|
32 |
Add ``cumulus`` to ``INSTALLED_APPS``:: |
|
33 |
||
34 |
INSTALLED_APPS = ( |
|
35 |
... |
|
36 |
'cumulus', |
|
37 |
... |
|
38 |
) |
|
39 |
||
32 |
40 |
Usage |
33 |
41 |
***** |
34 |
42 |
|
| … | … | @@ -63,6 +71,34 @@ Or through Django's default ImageField o |
63 |
71 |
>>> photo.image.url |
64 |
72 |
http://c0000000.cdn.cloudfiles.rackspacecloud.com/photos/some-image.jpg |
65 |
73 |
|
74 |
Management command |
|
75 |
****************** |
|
76 |
||
77 |
django-cumulus ships with a management command for synchronizing a local static media folder with a remote container. A few extra settings are required to make use of the command. |
|
78 |
||
79 |
Add the following required settings:: |
|
80 |
||
81 |
# the name of the container to sync with |
|
82 |
CUMULUS_STATIC_CONTAINER = 'MyStaticContainer' |
|
83 |
||
84 |
# whether to use rackspace's internal private network |
|
85 |
CUMULUS_USE_SERVICENET = False |
|
86 |
||
87 |
# a list of files to exclude from sync |
|
88 |
CUMULUS_FILTER_LIST = [] |
|
89 |
||
90 |
Invoke the management command:: |
|
91 |
||
92 |
./manage.py syncstatic |
|
93 |
||
94 |
You can also perform a test run:: |
|
95 |
||
96 |
./manage.py syncstatic -t |
|
97 |
||
98 |
For a full list of available options:: |
|
99 |
||
100 |
./manage.py help syncstatic |
|
101 |
||
66 |
102 |
Requirements |
67 |
103 |
************ |
68 |
104 |
|
| … | … | @@ -71,7 +107,7 @@ Requirements |
71 |
107 |
|
72 |
108 |
You can install these dependencies yourself, or use the requirements file included in the package:: |
73 |
109 |
|
74 |
pip install -r http://bitbucket.org/richleland/django-cumulus/raw/0. |
|
110 |
pip install -r http://bitbucket.org/richleland/django-cumulus/raw/0.3/requirements.txt |
|
75 |
111 |
|
76 |
112 |
Tests |
77 |
113 |
***** |
| … | … | @@ -8,7 +8,7 @@ long_description = open(index_filename). |
8 |
8 |
|
9 |
9 |
setup( |
10 |
10 |
name = "django-cumulus", |
11 |
version = "0. |
|
11 |
version = "0.3", |
|
12 |
12 |
packages = find_packages(), |
13 |
13 |
|
14 |
14 |
author = "Rich Leland", |
| … | … | @@ -17,7 +17,7 @@ setup( |
17 |
17 |
description = "An interface to Rackspace Cloud Files through Django.", |
18 |
18 |
long_description = long_description, |
19 |
19 |
url = "http://bitbucket.org/richleland/django-cumulus/", |
20 |
download_url = "http://bitbucket.org/richleland/django-cumulus/get/0. |
|
20 |
download_url = "http://bitbucket.org/richleland/django-cumulus/get/0.3.tar.gz", |
|
21 |
21 |
classifiers=[ |
22 |
22 |
'Development Status :: 3 - Alpha', |
23 |
23 |
'Environment :: Web Environment', |
