{{ BASE_URL }} django template variable
Project description
Installation
$ [sudo] pip install django-base-url
How it works
settings BASE_URL
if defined, else scheme+request.get_host()
settings.py
TEMPLATE_CONTEXT_PROCESSORS = (
"django_base_url.context_processors.base_url",
)
Examples
settings.py
:
BASE_URL="http://host/"
<base href="{{ BASE_URL }}">
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-base-url-2019.7.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903aceed057f19190d709dc46d67626220eacb9f6db3112c245fe7a0c88cbdc7 |
|
MD5 | 6027ce6f8d2c5151cbe96792cdf55963 |
|
BLAKE2b-256 | 75e0ca655f9fb320375d68a1c7d8176bedf138db4cb36d02e9118d86c5a2eb7f |