Skip to main content

django-sphinx-docs

pypi license

django-sphinx-docs allows to serve Sphinx generated docs directly from Django.

This is a fork of https://github.com/littlepea/django-docs to support Django 4.0+.

Dependencies

  • Python 3.10+
  • Django 3.2+

Installation

  1. Install django-sphinx-docs package:

    pip install django-sphinx-docs
    
  2. Add django_sphinx_docs to INSTALLED_APPS in settings.py:

    INSTALLED_APPS = (
        ...
        'django_sphinx_docs',
        ...
    )
    
  3. Add django_sphinx_docs.urls to urls.py:

    urlpatterns = [
        ...
        path('docs/', include('django_sphinx_docs.urls')),
        ...
    ]
    
  4. Customize configuration:

    DOCS_ROOT = os.path.join(PROJECT_PATH, '../docs/_build/html')
    DOCS_ACCESS = 'staff'
    

Configuration

DOCS_ROOT (required)

Absolute path to the root directory of html docs generated by Sphinx (just like STATIC_ROOT / MEDIA_ROOT settings).

DOCS_ACCESS (optional)

Docs access level (public by default). Possible values:

  • public - (default) docs are visible to everyone
  • login_required - docs are visible only to authenticated users
  • staff - docs are visible only to staff users (user.is_staff == True)
  • superuser - docs are visible only to superusers (user.is_superuser == True)

Running the tests

uv run pytest

Running the example project

cd example
uv run python manage.py migrate
uv run python manage.py runserver

Metadata

Release files for django-sphinx-docs 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sphinx-docs 0.4.1
File Size Uploaded Provenance
django_sphinx_docs-0.4.1.tar.gz 29.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sphinx-docs 0.4.1
File Interpreter ABI Platform
django_sphinx_docs-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.5 kB

Release files / django_sphinx_docs-0.4.1.tar.gz

Download URL django_sphinx_docs-0.4.1.tar.gz
Size 29.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eb220566ae371f958bae4cf7913371084ce03e97e3f4be31250cd53bfe55e073
BLAKE2b-256 checksum
How to use checksums
44d61ac32ff61affc826e59f5309056cef808ee5668ddd4eb2bf334befb3ff5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

Release files / django_sphinx_docs-0.4.1-py3-none-any.whl

Download URL django_sphinx_docs-0.4.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a39e7e7b92633fcad585745d4a05d4037c76025ee9eaf66b05f26f7664e846b
BLAKE2b-256 checksum
How to use checksums
4454fd85c5f50d6320f8bf7ac9755e8c4a409b105b148552f4adfc5f3aad0ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

Security for django-sphinx-docs 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_sphinx_docs-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page