Skip to main content

A Django App for creating and maintaining consistent looks across a django website.

Project description

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!”

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_sitewide-0.2.0.tar.gz (15.4 MB view details)

Uploaded Source

File details

Details for the file django_sitewide-0.2.0.tar.gz.

File metadata

  • Download URL: django_sitewide-0.2.0.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for django_sitewide-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d609da9f0d5532f58fac5ed157ef6f9fb787d18f5b947c6ce3a439da10475d00
MD5 d8b20914fadcc9665beb8d2a6224e5ae
BLAKE2b-256 7e1a6ad098cf2fccfe5b41c18fc20bf4330e2a0a0bf025173f1dd0b79cd3dd07

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