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

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

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.25
File Size Uploaded Provenance
django_sites_extra-0.1.25.tar.gz 25.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 99.2 kB

Release files / django_sites_extra-0.1.25.tar.gz

Download URL django_sites_extra-0.1.25.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e259c04b2e90bc38095c99c032f3d85bf5c5ae816ac69825a6686d157570c804
BLAKE2b-256 checksum
How to use checksums
5417663dc10ce05c242700ffe8443ffe69effb80d765a9ddf2b5e754118065b8
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.25-py3-none-any.whl

Download URL django_sites_extra-0.1.25-py3-none-any.whl
Size 73.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60a0b28cd1693513abede5c51b57d3aaf63a5709a914fcf8d80c848b032e9854
BLAKE2b-256 checksum
How to use checksums
26366289a2c2409deafe8f22d8f1c198ead3cd856c5dce460c1fb7d71254ca70
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.25

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