Skip to main content

django-sites-extra PyPi license

PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

GitHub GitHub release GitHub release

Test codecov.io pre-commit.ci status gitthub.com

Docs

Check Demo Project

  • Check the demo repo on GitHub

Requirements

  • Python 3.9+ supported.
  • Django 3.2+ supported.

Setup

  1. Install from pip:
    pip install django-sites-extra
    
  2. Modify settings.py by adding the app to INSTALLED_APPS:
    INSTALLED_APPS = [
        # ...
        "sites_extra",
        # ...
    ]
    
  3. Execute Django's command migrate inside your project's root:
    python manage.py migrate
    Running migrations:
      Applying sites_extra.0001_initial... OK
    
  4. Modify settings.py by adding the app's context processor to TEMPLATES:
    TEMPLATES = [
        {
            # ...
            "OPTIONS": {
                "context_processors": [
                    # ...
                    "sites_extra.context_processors.info",
                    # ...
                ],
            },
        },
    ]
    
  5. Optionally, but sugguested, the Django's Current Site middleware is enabled inside settings.py:
    MIDDLEWARE = (
        # ...
        "django.contrib.sites.middleware.CurrentSiteMiddleware",
        # ...
    )
    

Run Example Project

git clone --depth=50 --branch=django-sites-extra https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver

Now browser the app @ http://127.0.0.1:8000

Metadata

Release files for django-sites-extra 0.1.26

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-sites-extra 0.1.26
File Size Uploaded Provenance Actions
django_sites_extra-0.1.26.tar.gz 26.4 kB Without provenance Details for django_sites_extra-0.1.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sites-extra 0.1.26
File Interpreter ABI Platform Actions
django_sites_extra-0.1.26-py3-none-any.whl Python 3 none any Details for django_sites_extra-0.1.26-py3-none-any.whl

Total release size: 99.7 kB

Release files / django_sites_extra-0.1.26.tar.gz

Download URL django_sites_extra-0.1.26.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1364726f86d85e87774ada2d24a126d8dd0c6960a3aeeefc0747e716999fda29
BLAKE2b-256 checksum
How to use checksums
da77c2ff5ff6d8276312d4ad24cdfa87b053815ae298ee88e025cf61911b80f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / django_sites_extra-0.1.26-py3-none-any.whl

Download URL django_sites_extra-0.1.26-py3-none-any.whl
Size 73.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9aa12b306d3356744cf65a2178e5a26ba92fd17d012526eaaad831eb208d14bc
BLAKE2b-256 checksum
How to use checksums
32b56eb65a22a07c1140c9d772f40da770183139985b3443c0705dad55b015c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for django-sites-extra 0.1.26

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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