<commit_before>django-treenav
==============

Extensible, hierarchical, and pluggable navigation system for Django sites

.. highlight:: python

Features
--------

- Generic functionality with multiple URL specifications: get_absolute_url(), reverse(), or raw URLs
- Packaged with templates to render the tree hierarchy with nested `<ul>`'s, but can easily be overridden with custom templates
- Useful css classes for flexible UI customization
- Automatically sets "active" on item and item's parents if PATH_INFO is equal to item.href
- Efficient: minimizes database access with django-mptt functionality

Requirements
------------
- `django
  <https://github.com/django/django/>`_
- `django-mptt
  <http://code.google.com/p/django-mptt/>`_

Installation
------------
#.  Install the app with pip::

        pip install django-treenav


#. Add to your INSTALLED_APPS and run syncdb::

        INSTALLED_APPS = (
            ...,
            'mptt',
            'treenav',
        )


#. Include these context processors::

    TEMPLATE_CONTEXT_PROCESSORS = (
        "django.core.context_processors.request",
        "treenav.context_processors.treenav_active",
    )


#. Add these urls::

    urlpatterns = patterns('',
        (r'^treenav/', include('treenav.urls.admin')),
        (r'^treenav-missing/', include('treenav.urls.undefined_url')),
    )
    
Development sponsored by `Caktus Consulting Group, LLC
<http://www.caktusgroup.com/services>`_.
<commit_msg>moved highlight further down<commit_after>django-treenav
==============

Extensible, hierarchical, and pluggable navigation system for Django sites

Features
--------

- Generic functionality with multiple URL specifications: get_absolute_url(), reverse(), or raw URLs
- Packaged with templates to render the tree hierarchy with nested `<ul>`'s, but can easily be overridden with custom templates
- Useful css classes for flexible UI customization
- Automatically sets "active" on item and item's parents if PATH_INFO is equal to item.href
- Efficient: minimizes database access with django-mptt functionality

Requirements
------------
- `django
  <https://github.com/django/django/>`_
- `django-mptt
  <http://code.google.com/p/django-mptt/>`_

Installation
------------
#.  Install the app with pip::

        pip install django-treenav


#. Add to your INSTALLED_APPS and run syncdb:

    .. highlight:: python    
    
    ::

        INSTALLED_APPS = (
            ...,
            'mptt',
            'treenav',
        )


#. Include these context processors::

    TEMPLATE_CONTEXT_PROCESSORS = (
        "django.core.context_processors.request",
        "treenav.context_processors.treenav_active",
    )


#. Add these urls::

    urlpatterns = patterns('',
        (r'^treenav/', include('treenav.urls.admin')),
        (r'^treenav-missing/', include('treenav.urls.undefined_url')),
    )
    
Development sponsored by `Caktus Consulting Group, LLC
<http://www.caktusgroup.com/services>`_.

{'fraction_non_alphanumeric': 0.13367003367003366, 'fraction_numerical': 0.0, 'mean_word_length': 2.97192513368984, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7334235', 'n_tokens_mistral': 924, 'n_tokens_neox': 848, 'n_words': 241}