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 modules from a Django project's INSTALLED_APPS for Sphinx

Project Description


Original code is from This version has been cleaned up and modified to work as a Django management command.

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 combination for documenting your project would be:
  • sphinx
  • cartouche to avoid polluting your docstrings with rst syntax
  • django-giza to generate the doc from your applications
  • django-sphinxdoc to integrate the sphinx doc in your website

How it works

It will scrape all your .py files in each application listed by INSTALLED_APPS, then add automodules in your PROJECT/SPHINX_ROOT/auto_modules.rst.

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

  • Project Apps are applications located in your project directory
  • 3rd Party Apps are apps which are somewhere in your pythonpath (preferably in your virtualenv)

Good Practices

Add a docstring in your application’s file to describe it. django-giza will automatically scrape it for you (although files are excluded by default…)


$ pip install django-giza

Then add giza to your INSTALLED_APPS in


$ ./ giza

You can also specify the relative path to your docs root:

$ ./ giza private/documentation


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


    Root path for documentation (absolute path required).

    defaults to:



    Name of your master document.

    defaults to:



    Name for the generated modules doc.

    defaults to:



    Title for the modules page.

    defaults to:

    "Python modules"


    Title for the internal apps section.

    defaults to:

    "Project Apps"


    Title for the external apps section.

    defaults to:

    "3rd Party Apps"


    List of applications to exclude. Can use wildcard at the end.

    defaults to: ["django.*", "giza"]


    List of filenames to exclude.

    defaults to: [""]


    List of options to the automodule directive, such as “private-members” (without colon delimiters)

    defaults to:

    ["deprecated", "members", "private-members", "special-members", "show-inheritance"]


  • Write tests
  • improve the not_relevant stuff to auto exclude a file without class or def

Release History

This version
History Node


History Node


History Node


History Node


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.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(6.5 kB) Copy SHA256 Hash SHA256
Source None Sep 17, 2012

Supported By

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 Google Google Cloud Servers