{
"info": {
"author": "Mikhail Porokhovnichenko",
"author_email": "marazmiki@gmail.com",
"bugtrack_url": null,
"classifiers": [
"Environment :: Web Environment",
"Framework :: Django",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4"
],
"description": "=====================\ndjango-webdav-storage\n=====================\n\n\n.. image:: https://badge.fury.io/py/django-webdav-storage.png\n :target: http://badge.fury.io/py/django-webdav-storage\n :alt:\n\n.. image:: https://travis-ci.org/marazmiki/django-webdav-storage.png?branch=master\n :target: https://travis-ci.org/marazmiki/django-webdav-storage\n :alt: Travis CI build status\n\n.. image:: https://coveralls.io/repos/marazmiki/django-webdav-storage/badge.png?branch=master\n :target: https://coveralls.io/r/marazmiki/django-webdav-storage?branch=master\n :alt: Code coverage percentage\n\n.. image:: https://pypip.in/d/django-webdav-storage/badge.png\n :target: https://pypi.python.org/pypi/django-webdav-storage\n :alt: Latest version on PyPI\n\n.. image:: https://pypip.in/wheel/django-webdav-storage/badge.svg\n :target: https://pypi.python.org/pypi/django-webdav-storage/\n :alt: Wheel Status\n\n.. image:: https://pypip.in/py_versions/django-webdav-storage/badge.png\n :target: https://pypi.python.org/pypi/django-webdav-storage/\n :alt: Supported Python versions\n\nThis application allows you easily save media and static files into webdav storage.\n\nDependencies\n------------\n\n* `requests `_ library\n\nInstallation\n------------\n\n1. Install the package\n\n.. code:: bash\n\n pip install django-webdav-storage\n\n2. Pick the webdav server url in `WEBDAV_URL` and `WEBDAV_PUBLIC_URL`:\n\n.. code:: python\n\n WEBDAV_URL = 'http://webdav.example.com/',\n WEBDAV_PUBLIC_URL = 'http://webdav.example.com/'\n\nIf you want use HTTP Basic authorization to webdav access, you can specify\nyour credentials like that:\n\n.. code:: python\n\n WEBDAV_URL = 'http://johndoe:secret@webdav.example.com/'\n\n\n3. Set the webdav storage class as default:\n\n.. code:: python\n\n DEFAULT_FILE_STORAGE = 'django_webdav_storage.storage.WebDavStorage'\n\n4. If your webdav backend can't recursively create path (e.g. `nginx can do this `_, while apache can't), set the `WEBDAV_RECURSIVE_MKCOL` variable to `True`:\n\n.. code:: python\n\n WEBDAV_RECURSIVE_MKCOL = True\n\n5. If you use nginx as webdav server and want to enable storage directory listing, set the WEBDAV_LISTING_BACKEND option to:\n\n.. code:: python\n\n WEBDAV_LISTING_BACKEND = 'django_webdav_storage.listing.nginx_autoindex'\n\nAutoindex feature must be enabled in your nginx configuration for application servers (see example below). Be careful! Allowing autoindex for any user may lead to security and performance issues.\n\nAlso, you may specify path to other function with the following interface:\n\n.. code:: python\n\n def listdir(storage_object, path_string):\n return dirs_list, files_list\n\n\nThe nginx webdav configuration example\n--------------------------------------\n\n.. code:: nginx\n\n # Public readonly media server.\n server {\n listen 80;\n charset utf-8;\n server_tokens off;\n server_name media.example.com;\n\n access_log /var/log/nginx/media_access.log;\n error_log /var/log/nginx/media_error.log;\n\n root /usr/share/nginx/webdav;\n\n }\n\n # WebDAV server\n server {\n listen 80;\n charset utf-8;\n server_tokens off;\n server_name webdav.example.com;\n\n access_log /var/log/nginx/webdav_access.log;\n error_log /var/log/nginx/webdav_error.log;\n\n root /usr/share/nginx/webdav;\n\n client_max_body_size 10m;\n client_body_temp_path /tmp;\n create_full_put_path on;\n autoindex on;\n\n dav_methods PUT DELETE MKCOL COPY MOVE;\n dav_access user:rw group:r all:r;\n\n satisfy any;\n\n allow 127.0.0.1/32;\n deny all;\n\n auth_basic 'My WebDAV area';\n auth_basic_user_file /usr/share/nginx/.htpasswd;\n }\n\n\n\nCaveats\n-------\n\n* In python 3.x ``ContentFile`` with text mode content (not binary one) will causes ``TypeError`` due ``requests`` restrictions",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/marazmiki/django-webdav-storage",
"keywords": null,
"license": "UNKNOWN",
"maintainer": null,
"maintainer_email": null,
"name": "dj-webdav-storage",
"package_url": "https://pypi.org/project/dj-webdav-storage/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/dj-webdav-storage/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/marazmiki/django-webdav-storage"
},
"release_url": "https://pypi.org/project/dj-webdav-storage/0.6.1/",
"requires_dist": null,
"requires_python": null,
"summary": "This application allows you easily save media and static files into webdav storage",
"version": "0.6.1"
},
"last_serial": 1667875,
"releases": {
"0.6.1": [
{
"comment_text": "",
"digests": {
"md5": "c86dc6948c2eff66bbf07cd9aed510fc",
"sha256": "72f49f73ab40ac338710cf8034bc32fbaf7be2dc0442e7f3baa1ea98e86fb8d5"
},
"downloads": -1,
"filename": "dj-webdav-storage-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "c86dc6948c2eff66bbf07cd9aed510fc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6438,
"upload_time": "2015-08-07T08:46:25",
"url": "https://files.pythonhosted.org/packages/fb/a4/0ff2c3000f419fff8286d5c9f921768fb994a9d3de6fcf501575326bd897/dj-webdav-storage-0.6.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "c86dc6948c2eff66bbf07cd9aed510fc",
"sha256": "72f49f73ab40ac338710cf8034bc32fbaf7be2dc0442e7f3baa1ea98e86fb8d5"
},
"downloads": -1,
"filename": "dj-webdav-storage-0.6.1.tar.gz",
"has_sig": false,
"md5_digest": "c86dc6948c2eff66bbf07cd9aed510fc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6438,
"upload_time": "2015-08-07T08:46:25",
"url": "https://files.pythonhosted.org/packages/fb/a4/0ff2c3000f419fff8286d5c9f921768fb994a9d3de6fcf501575326bd897/dj-webdav-storage-0.6.1.tar.gz"
}
]
}