django-advanced-pages 0.8.6

Creator: danarutscher

Last updated:

Add to Cart

Description:

djangoadvancedpages 0.8.6

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.