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)
| File | Size | Uploaded | |
|---|---|---|---|
| Django-Sites-Templatetags-0.0.3.tar.gz | 2.1 kB | Details |