Skip to main content
Build Maintainability Test Coverage https://codecov.io/gh/snake-soft/django-advanced-pages/branch/main/graph/badge.svg?token=X9MJQJBAEH https://img.shields.io/badge/License-GPLv3-blue.svg

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),
},

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)

Source distribution for django-advanced-pages 0.8.6
File Size Uploaded
django-advanced-pages-0.8.6.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-advanced-pages 0.8.6
File Interpreter ABI Platform
django_advanced_pages-0.8.6-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

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