Skip to main content

Misc utilities for Django

Project description

https://badge.fury.io/py/django-pj-core.png https://travis-ci.org/jokimies/django-pj-core.png?branch=master

Misc utilities for Django

Documentation

The full documentation is at https://django-pj-core.readthedocs.org (someday, not yet).

Quickstart

Install django-pj-core:

pip install django-pj-core

Then use it in a template:

{% load pjcore_tags %}

<span class="{{ value | colorize_percentage }}" ... </span>

CSS:

span.negative {
  color: #CC3333;
}

span.positive {
  color: #88FF88;
}

Will return string red (negative value or green (positive value)

Cookiecutter Tools Used in Making This Package

  • cookiecutter

  • cookiecutter-djangopackage

History

0.1.0 (2015-08-31)

  • First release on PyPI.

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

django-pj-core-0.1.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

django_pj_core-0.1.2-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 2 Python 3

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