Metadata-Version: 2.1
Name: django-advanced-pages
Version: 0.8.0
Summary: Django flatpages with advanced features
Home-page: UNKNOWN
Author: Snake-Soft
Author-email: info@snake-soft.com
License: GPL3
Description: =====================
        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:
        
        .. code-block:: bash
        
        	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:
        
        .. code-block:: python
        
           # settings.py
           INSTALLED_APPS = [
               # ...
               'django.contrib.flatpages',
               'pages.apps.PagesConfig',
               # ...
           ]
        
        
        You can pass the pages to the template like this:
        
        .. code-block:: python
        
           from pages.models import Page, Category
           'pages': {
              'company': Page.objects.filter(category=Category.COMPANY),
              'legal': Page.objects.filter(category=Category.LEGAL),
           },
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.1
Classifier: Framework :: Django :: 3.2
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Provides-Extra: test
