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
Add “sitewide” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ..., "sitewide", ]Include the sitewide URLconf in your project urls.py like this:
path("", include("sitewide.urls")),Add “sitewide.middleware.connect.SitewideMiddleware” to the MIDDLEWARE list in your project setting after the stock middleware entries:
MIDDLEWARE = [ ..., "sitewide.middleware.connect.SitewideMiddleware", ]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.
Start the web service on your local development machine:
./manage.py runserver
Open a web browser on the same machine and browse to http://localhost:8000/
If every goes well, you should see a page saying “Sitewide is Working!”
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django_sitewide-0.1.51.tar.gz.
File metadata
- Download URL: django_sitewide-0.1.51.tar.gz
- Upload date:
- Size: 13.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55ab74c2e35fa9dbc08fbc6049421f57445e5b30b8dc9dc85bd77374b1f88813
|
|
| MD5 |
580f6a4d25a65b3cd302f016ebfa46e9
|
|
| BLAKE2b-256 |
1ae0567f66afaceed6addd4aa5f3fa7e9f9d463b2d184654c3f16419da9dfdd9
|