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

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

Built distribution (wheel)

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

Total release size: 99.1 kB

Release files / django_sites_extra-0.1.24.tar.gz

Download URL django_sites_extra-0.1.24.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8908acd80f2f7434740aa837c9634f228fd9333273a19fb29a28de47ffe6ff0c
BLAKE2b-256 checksum
How to use checksums
a1687bc236be64bb39c929d11aa146cd4f8daa6ff6b677fac5db90a9028363f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL django_sites_extra-0.1.24-py3-none-any.whl
Size 73.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c516737d0fb3ea2a26096a817015c55442b7a1f671188e8bd878224e83945756
BLAKE2b-256 checksum
How to use checksums
8ccadde0890d0874cad0258eaf9e15bbfef1f77dba9efa079dd34f4f564eb4af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for django-sites-extra 0.1.24

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