Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Autodoc all apps from a project to Sphinx

Project Description

Django is very nice in that way you can reuse a lot of applications in your projects. It means for big projects that you’ll get a long list of applications in your settings.INSTALLED_APP.

If you’re using Django with Sphinx and want to autodoc all these apps in a wink of an eye, then this app is for you.

A good combinaison for documenting your project would be:
  • sphinx
  • django-sphinx-autodoc to generate the doc from your applications
  • django-sphinxdoc to integrate the sphinx doc in your website

How it works

Copy the file in your project directory, then execute it.

It will scrape all your .py files in each application listed by INSTALLED_APP, then add automodules in your DS_ROOT/modules.rst.

You will then see your applications grouped in 2 different categories:

  • internal application is an application located in your project directory
  • external application is an app which is somewhere in your pythonpath (preferably in your virtualenv)

Good Practices

Add a docstring in your application’s file to describe it. django-sphinx-autodoc will automatically scrape it for you.


You can modify some of the settings used by django-sphinx-autodoc:

  • DS_ROOT: root path for documentation (default to project_dir/doc)
  • DS_MASTER_DOC: name of your master document (default to “index.rst”)
  • DS_FILENAME: name for the modules (default to “auto_modules.rst”)
  • DS_EXCLUDED_APPS: list of applications to exclude (default to [])
  • DS_EXCLUDED_MODULES: list of files to exclude (default to [“”])


  • Write tests
  • improve the not_relevant stuff to auto exclude a file without class or def
  • Django command extension to update the autodoc

Release History

This version
History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.0 kB) Copy SHA256 Hash SHA256
Source Jun 11, 2011

Supported By

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