A library that enables you to easily build your own tab navigation based on class based views.
Project description
django-tabination is a lightweight (~70 SLOC) Django 1.4+ library that enables you to easily build your own tab navigation based on class based views.
It supports code based creation of tabs directly in your views, conditional displaying/hiding of a tab, translation of the tab labels, tab sorting, multi-level tab navigations and more.
Supported Django versions: 1.4, 1.5, 1.6
Supported Python versions: 2.6, 2.7, 3.3, 3.4, pypy2
Docs
The docs can be found at http://django-tabination.readthedocs.org/.
Installing
You can install django-tabination directly from pypi using pip:
$ pip install django-tabination
Currently there is no further configuration needed. For more information about setup and usage, please refer to the docs.
Coding Guidelines
PEP8 via flake8 with max-line-width set to 99 and E126-E128 ignored.
Testing
Testing is implemented using tox and pytest. Violations of the coding guidelines will be counted as errors.
The easiest way to run the tests is by simply running tox:
$ pip install tox $ tox
This will run all tests in different virtualenvs with different configuration. Currently there are around 6 different tox environments. They can be listed with the -l switch:
$ tox -l py26-django14 py26-django15 py27-django14 py27-django15 py34-django16 pypy-django14 pypy-django15
To run the tests only in specific environments, use the -e switch:
$ tox -e py27-django14,py26-django15
License
Copyright 2012 - 2014 Danilo Bargen (http://dbrgn.ch/) and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.
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
Built Distributions
File details
Details for the file django-tabination-0.4.0.tar.gz
.
File metadata
- Download URL: django-tabination-0.4.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4814e68fc52ca76a49d458063e8d0fe915fc7eec329306af444a1ad4e18db447 |
|
MD5 | ff9a4cb5d0f08ec4fe503360c48e6954 |
|
BLAKE2b-256 | d1f031577d907800406cc4d47a2ba825f7c115b37c9f97101fa2aa7e121e3ccd |
File details
Details for the file django_tabination-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: django_tabination-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca46a340719c4c1746b05c96acbcfb72465b8383d2e7284278219155e7d9c27 |
|
MD5 | b4fd7cd0665df01bd92d75b1e6b0f41a |
|
BLAKE2b-256 | f6c4a12e00c60babb3d831f5e5588a23858af654fdcec31311e6652dc3a9d637 |
File details
Details for the file django_tabination-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: django_tabination-0.4.0-py2-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fbce76cf5bedfb797fb46bc1b2c2211fc92c9401d930a9d3e84ded516a409fd |
|
MD5 | 216d6f22f2699b5b6277712d9d9a4db7 |
|
BLAKE2b-256 | 8488c83cd517dd49695f1fb03bb8411ebeaeae45075cbe37cb418a50e7488bd5 |