Skip to main content

Tango shared/core functionality.

Project description

Tango Shared Core
=====

Provides shared and core functionality used by multiple Tango apps,
and will be installed by them as needed.

[![Build Status](https://travis-ci.org/tBaxter/tango-shared-core.svg?branch=master)](https://travis-ci.org/tBaxter/tango-shared-core)

## So what's in here, anyway?

### Base models
Abstract base models are included for common content objects, including images, so you can handle common fields and needs quickly, easily and consistently.

### Useful settings
A lot of them. Seriously, take a look at the settings file.

### Template tags and filters
* Formatting helpers
* Simple (and non-tracking) social media links.
* Additional time output helpers

### A robust base template
Based on HTML5 Boilerplate, but for Django, and battle-tested.

### A administrator how-to section in the admin
You already have developer documentation in the admin. This gives you hooks to include documentation aimed at administrators as well, just by including a `how_to.md` file in your app. See the other Tango apps for examples.

### Middleware and Context Processors
* StripEmptyLines: Strips HTML output of excessive newlines
* CompactHTMLMiddleware: Pseudo-minification for HTML output, good for a 30-40% reduction in file size. Not entirely safe with `pre` tags. Use with caution.
* The site_processor context processor adds a bunch of useful things in context.

### Utils
* Robust user submission sanitization
* Map tools to ease Google Map integration (Note: You'll need to set `GMAP_KEY` in your settings)

### JS
* A solid implementation of Markitup

## Installation
Installation should be automatic, from the application needing it.

You can also install from pip or github.

If you run into appRegistry issues, be sure `INSTALLED_APPS` contains
`easy_thumbnails` and `django.contrib.contenttypes`.


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

tango-shared-core-1.5.0.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

tango_shared_core-1.5.0-py3-none-any.whl (42.4 kB view details)

Uploaded Python 3

File details

Details for the file tango-shared-core-1.5.0.tar.gz.

File metadata

  • Download URL: tango-shared-core-1.5.0.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for tango-shared-core-1.5.0.tar.gz
Algorithm Hash digest
SHA256 bf708ab0623b81b04b41db8476a4986d2a4c3b503fa3ce8247c6c6d4d27ec110
MD5 a4425c503be07870e51affa8a37fe9f5
BLAKE2b-256 042e8452419bc589c84f70028f6dae6c27e37607a91f69f018a9e6724f69e274

See more details on using hashes here.

File details

Details for the file tango_shared_core-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: tango_shared_core-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 42.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5

File hashes

Hashes for tango_shared_core-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fe75493edc5afcde70045c138acefd80b2148dac8c795f2137281aba638ecf9
MD5 458c1b785d44a238aafce8adf4f7d545
BLAKE2b-256 0475779481fc9e31e53f658682b922eb5d75da0e6705f94f0b0ca32091433522

See more details on using hashes here.

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