{{ 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-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 378b7ae36e9c5e9816b8b20ebd312ced120ff4d04cc9cc3b61c2892130febdfe |
|
MD5 | 8dff388ea2dc070c5eb3252904378284 |
|
BLAKE2b-256 | b49c283b1b21ee968d8b3f24173673a297abc2ba37ed3d745a44f8fb6ceacb5a |