Skip to main content

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 }}.

Release files for Django-Sites-Templatetags 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Django-Sites-Templatetags 0.0.3
File Size Uploaded
Django-Sites-Templatetags-0.0.3.tar.gz 2.1 kB Details

Release files / Django-Sites-Templatetags-0.0.3.tar.gz

Download URL Django-Sites-Templatetags-0.0.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d2d191fcc17cebe5bea9de3fbbead58e5e8af617a42508bc16840a523d889186
BLAKE2b-256 checksum
How to use checksums
18be24bd2fdf2f6e6ac70f67e947196c9f3400eae37a03d86316701666b306f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page