Skip to main content

Sitewide is a Django app that helps web app/site developers focus on the main contents of their projects by automating the creation of headers, sidebars and footers. It aims to reduce the routine adaptation of snippets when starting new projects. The developer only needs to introduce the latest information for the repeating page layouts via a YAML file. Although Sitewide operates as a middleware, users can alter its settings via the response context data. Sitewide is the product of a Python hobbyist and is currently in the pre-alpha stage.

Quick start

  1. Add “sitewide” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...,
        "sitewide",
    ]
  2. Include the sitewide URLconf in your project urls.py like this:

    path("", include("sitewide.urls")),
  3. Add “sitewide.middleware.connect.SitewideMiddleware” to the MIDDLEWARE list in your project setting after the stock middleware entries:

    MIDDLEWARE = [
        ...,
        "sitewide.middleware.connect.SitewideMiddleware",
    ]
  4. Run python manage.py migrate to create the model for sitewide settings. In the future, Sitewide will use the model for performing word replacements depending on the context of your project.

  5. Start the web service on your local development machine:

    ./manage.py runserver
  6. Open a web browser on the same machine and browse to http://localhost:8000/

  7. If every goes well, you should see a page saying “Sitewide is Working!”

Release files for django-sitewide 0.2.0

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-sitewide 0.2.0
File Size Uploaded
django_sitewide-0.2.0.tar.gz 15.4 MB Details

Release files / django_sitewide-0.2.0.tar.gz

Download URL django_sitewide-0.2.0.tar.gz
Size 15.4 MB
Tags Source
SHA-256 checksum
How to use checksums
d609da9f0d5532f58fac5ed157ef6f9fb787d18f5b947c6ce3a439da10475d00
BLAKE2b-256 checksum
How to use checksums
7e1a6ad098cf2fccfe5b41c18fc20bf4330e2a0a0bf025173f1dd0b79cd3dd07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.51

1 release file

0.1

1 release file

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