Skip to main content

The simple menu for Django.

Project description

https://badge.fury.io/py/sales_menu.png https://travis-ci.org/s-m-i-t-a/sales_menu.png?branch=master https://coveralls.io/repos/s-m-i-t-a/sales_menu/badge.png?branch=master Requirements Status

The simple menu for Django.

Quickstart

Install sales_menu:

pip install sales_menu

Add sales_menu to your INSTALLED_APPS list in your settings.

sales_menu requires that the request object be available in the context when you call the {% menu %} template tag. This means that you need to ensure that your TEMPLATE_CONTEXT_PROCESSORS setting includes django.core.context_processors.request, which it doesn’t by default.

And use in template:

{% menu_tags %}
{% menu %}

{% for item in menu %}

    <p>{{ item.text }}
    {% if menu_item in selected_menu_path %}
    &mdash; selected
    {% endif %}
    </p>

    {% for child in item.children %}
        <p>— {{ child.text }}</p>
    {% endfor %}
{% endfor %}

Features

  • TODO

History

0.0.1 (2014-04-09)

  • First release on PyPI.

0.1.0 (2014-09-30)

  • Fixed outdated requirements

  • Added requires.io badge

  • Run test on Django 1.7

0.1.1 (2014-09-30)

  • Fixed run on Django 1.4

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sales_menu-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file sales_menu-0.1.1.tar.gz.

File metadata

  • Download URL: sales_menu-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sales_menu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 14f91639192acbe059b0607de4890e29d4fec5563f2aab099a9119eb1c8b470e
MD5 11e7003d0600cc39f4376837734252f1
BLAKE2b-256 58a2dcf2f6049577fe18838736298491fc6387eb1023fcfe4bfa8ac59925a3a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page