Django advanced pages
With this you can enhance the Django flatpages app by some features.
Features
Categorize pages
Original Django flatpages are not touched
Priorize the pages
Categorize the pages
Admin loads the enhanced model instead of the flatpages
Installation
Install using pip:
pip install django-advanced-pages
You need to load both, advanced and original pages because this package uses onetoone field to enhance the original Django Flatpages app:
# settings.py
INSTALLED_APPS = [
# ...
'django.contrib.flatpages',
'pages.apps.PagesConfig',
# ...
]
You can pass the pages to the template like this:
from pages.models import Page, Category
'pages': {
'company': Page.objects.filter(category=Category.COMPANY),
'legal': Page.objects.filter(category=Category.LEGAL),
},
Metadata
Release files for django-advanced-pages 0.8.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-advanced-pages-0.8.6.tar.gz | 18.8 kB | Without provenance | Details for django-advanced-pages-0.8.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_advanced_pages-0.8.6-py3-none-any.whl | Python 3 | none | any | Details for django_advanced_pages-0.8.6-py3-none-any.whl |
Total release size: 38.2 kB
Release files / django-advanced-pages-0.8.6.tar.gz
| Download URL | django-advanced-pages-0.8.6.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
938bd244db55ba5136f3cfe92e53f4dfd87c9ec9b8cc3115aa84ca43d10739e5
|
|
BLAKE2b-256 checksum How to use checksums |
beb33ae83e5038e238ef3563e3006e4a9c9f7ed05275d4b486a11ceed9842785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / django_advanced_pages-0.8.6-py3-none-any.whl
| Download URL | django_advanced_pages-0.8.6-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2ef1c9a8196c564e1c40e96abb587eac1e8d6328217890974c180371d68bf61
|
|
BLAKE2b-256 checksum How to use checksums |
fd8a6b1d310fb3c82fb904892dec60bbce48028ca1a9c094fd341bd7357cd9f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for django-advanced-pages 0.8.6
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.