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.

Files for Django-Sites-Templatetags, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size Django-Sites-Templatetags-0.0.3.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page