This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This application allows you easily save media and static files into webdav storage.



  1. Install the package
pip install django-webdav-storage
  1. Pick the webdav server url in WEBDAV_URL and WEBDAV_PUBLIC_URL:

If you want use HTTP Basic authorization to webdav access, you can specify your credentials like that:

  1. Set the webdav storage class as default:
  1. 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:
  1. If you use nginx as webdav server and want to enable storage directory listing, set the WEBDAV_LISTING_BACKEND option to:
WEBDAV_LISTING_BACKEND = 'django_webdav_storage.listing.nginx_autoindex'

Autoindex 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.

Also, you may specify path to other function with the following interface:

def listdir(storage_object, path_string):
    return dirs_list, files_list

The nginx webdav configuration example

# Public readonly media server.
server {
    listen 80;
    charset        utf-8;
    server_tokens  off;

    access_log     /var/log/nginx/media_access.log;
    error_log      /var/log/nginx/media_error.log;

    root           /usr/share/nginx/webdav;


# WebDAV server
server {
    listen 80;
    charset        utf-8;
    server_tokens  off;

    access_log     /var/log/nginx/webdav_access.log;
    error_log      /var/log/nginx/webdav_error.log;

    root           /usr/share/nginx/webdav;

    client_max_body_size    10m;
    client_body_temp_path   /tmp;
    create_full_put_path    on;
    autoindex               on;

    dav_methods             PUT DELETE MKCOL COPY MOVE;
    dav_access              user:rw   group:r   all:r;

    satisfy                 any;

    allow         ;
    deny                    all;

    auth_basic              'My WebDAV area';
    auth_basic_user_file    /usr/share/nginx/.htpasswd;


  • In python 3.x ContentFile with text mode content (not binary one) will causes TypeError due requests restrictions
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dj-webdav-storage-0.6.1.tar.gz (6.4 kB) Copy SHA256 Checksum SHA256 Source Aug 7, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development 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