Skip to main content

sales_menu

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

Metadata

Release files for sales_menu 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sales_menu 0.1.1
File Size Uploaded Provenance
sales_menu-0.1.1.tar.gz 6.6 kB Without provenance Details

Release files / sales_menu-0.1.1.tar.gz

Download URL sales_menu-0.1.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
14f91639192acbe059b0607de4890e29d4fec5563f2aab099a9119eb1c8b470e
BLAKE2b-256 checksum
How to use checksums
58a2dcf2f6049577fe18838736298491fc6387eb1023fcfe4bfa8ac59925a3a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sales_menu 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

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