Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

A minimalist Django menu app.

Project description

django-alacarte is a minimalist menu app for Django.


$ pip install django-alacarte


Add “alacarte” to your INSTALLED_APPS:


In your root add the following code:

# ...

import alacarte

# Your url patterns

Note: You don’t need this if you use Django >= 1.7, autodiscovery is made automatically with AppConfig.

Create a file called inside the app of your choice and register its corresponding menus:

import alacarte

class BankTransactionsMenu(alacarte.Menu):
    label = 'Transactions'
    url_name = 'bank_transactions'

class BankBalanceMenu(alacarte.Menu):
    label = 'Balance'
    url_name = 'bank_balance'

class BankPremiumMenu(alacarte.Menu):
    label = 'Premium Offers'
    url_name = 'bank_premium_offers'

    def shown(self)
        user = self.context['user']
        return user.is_premium()

class BankMenu(alacarte.Menu):
    group = 'main'
    label = 'Bank'
    submenus = (

    def shown(self):
        user = self.context['user']
        return user.is_authenticated()


Then in your template:

{% load alacarte %}
{# ... #}
    {# ... #}
    {% alacarte "main" %}
    {# ... #}
{# ... #}


  • Django >= 1.3
  • Tested on Python 2.7 and 3.4

django-alacarte is not related to

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_alacarte-0.1.6-py2.py3-none-any.whl (7.3 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jul 24, 2015
django-alacarte-0.1.6.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None Jul 24, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page