Skip to main content
# django-bootstrapnavtags

Navigation templatetags for django with twitter bootstrap.

## Installation

If you want to install the latest stable release from PyPi:

$ pip install django-bootstrap-navtags

If you want to install the latest development version from GitHub:

$ pip install -e git://github.com/noxan/django-bootstrap-navtags#egg=django-bootstrapnavtags

Add `bootstrapnavtags` to your `INSTALLED_APPS`:

INSTALLED_APPS = (
...
'bootstrapnavtags',
...
)

Enable the `django.core.context_processors.request` by adding it to your settings.

TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
)

Default settings value of django for context processors can be found at: https://docs.djangoproject.com/en/dev/ref/settings/#template-context-processors

## How to use

First make sure to load the templatetag via `{% load bootstrapnavtags %}` in your template.

Then insert navigation entries into your template as it pleases you:

<ul class="nav">
{% navitem 'Home' 'home' %}
{% navitem 'Profile' 'users:profile' %}
</ul>

Release files for django-bootstrap-navtags 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 django-bootstrap-navtags 0.1.1
File Size Uploaded
django-bootstrap-navtags-0.1.1.tar.gz 4.3 kB Details

Release files / django-bootstrap-navtags-0.1.1.tar.gz

Download URL django-bootstrap-navtags-0.1.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d07830da85ee6f3cd395542517e21bca4c1a30fabf90fbf9a716f192d4548ce8
BLAKE2b-256 checksum
How to use checksums
bf9315958b07b984fff362dd09457489b21d544b0d72870c491a69086a8e9100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

0.0.0

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