Skip to main content

Django application to extend the standard "sites" framework with extra utils.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_sites_extra-0.1.5.tar.gz (165.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sites_extra-0.1.5-py3-none-any.whl (163.2 kB view details)

Uploaded Python 3

File details

Details for the file django_sites_extra-0.1.5.tar.gz.

File metadata

  • Download URL: django_sites_extra-0.1.5.tar.gz
  • Upload date:
  • Size: 165.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for django_sites_extra-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b61e3b8cf7c9169c693c0af5120d7ba5371c947660e59d1afb5dfef7c4fd3d2f
MD5 ebdccbd828ff1a2fbf8dbeeec7ba2d8b
BLAKE2b-256 b0760e2884ccf990687a460e6d7e0030b37eba5542f6449142990739421265b9

See more details on using hashes here.

File details

Details for the file django_sites_extra-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sites_extra-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d1173b3945f1b6104461d2e8989114d6c20faebfbe0b9115bc5dd1f879a1e695
MD5 88cfb84c915bddfb13d603019ba7a62d
BLAKE2b-256 2da4ff91b63a5592ffde11bc09497f512a2e8a6dbc6a3b412ef7d1174a97e560

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page