Skip to main content

The missing templatetags to get the current site from django.contrib.sites.

Project description

The missing templatetags to get the current site from django.contrib.sites.

Installation

Use your favorite method to get it from pypi, for example:

pip install django-sites-templatetags

Then add sites_templatetags to your INSTALLED_APPS.

Usage

In a template:

{% load sites %}
{% current_site as site %}
You are viewing {{ site.domain }}.

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-Sites-Templatetags-0.0.3.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file Django-Sites-Templatetags-0.0.3.tar.gz.

File metadata

File hashes

Hashes for Django-Sites-Templatetags-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d2d191fcc17cebe5bea9de3fbbead58e5e8af617a42508bc16840a523d889186
MD5 ca07d33f63305c8048aeb613614f9381
BLAKE2b-256 18be24bd2fdf2f6e6ac70f67e947196c9f3400eae37a03d86316701666b306f7

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