Terra Nanotech Template Overrides for Alliance Auth
Project description
Terra Nanotech Auth Templates
Template Overrides for Alliance Auth
pip install tnnt-templates
In local.py
right after INSTALLED_APPS
:
# TN-NT Auth Templates
INSTALLED_APPS.insert(0, "tnnt_templates")
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
"tnnt_templates.context_processors.tnnt_settings"
)
TNNT_TEMPLATE_ENTITY_ID = 8154711 # replace with your corp/alliance ID
TNNT_TEMPLATE_ENTITY_TYPE = "corporation" # default: "alliance"
TNNT_TEMPLATE_ENTITY_NAME = "My Awesome Corp/Alliance" # your corp/alliance name
# the URLs are shown in the user menu
TNNT_TEMPLATE_URLS_OWN_WEBSITES = [
{
"name": "Website",
"url": "https://webseite.com/",
"new_tab": True,
},
{
"name": "Forums",
"url": "https://forum.website.com/",
"new_tab": True,
},
]
TNNT_TEMPLATE_URLS_OTHER_WEBSITES = [
{
"name": "Website",
"url": "https://website.com/",
"new_tab": True,
},
]
Important
If you are using AA-GDPR
, the template stuff needs to be after the AA_GDPR
entry, like this:
# GDPR Compliance
INSTALLED_APPS.insert(0, "aagdpr")
AVOID_CDN = True
# TN-NT Auth Templates
INSTALLED_APPS.insert(0, "tnnt_templates")
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
tnnt_templates-2.7.4.tar.gz
(4.9 MB
view details)
Built Distribution
File details
Details for the file tnnt_templates-2.7.4.tar.gz
.
File metadata
- Download URL: tnnt_templates-2.7.4.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc409cc71e662be2c215d94ca3020b3f4449d461681ee38f69493c715b9ae5b |
|
MD5 | 317806987636ab09866c22a205b117f1 |
|
BLAKE2b-256 | 89d1d48d5dc95070dff7f50e7359975de8c1f1a138580e68c638e57f9e3c9f4e |
File details
Details for the file tnnt_templates-2.7.4-py3-none-any.whl
.
File metadata
- Download URL: tnnt_templates-2.7.4-py3-none-any.whl
- Upload date:
- Size: 5.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e63f7d560f8577bd75b3d5251bb11fe938ff09aa6b2b5979262837957923e8a5 |
|
MD5 | 4a5c0c00b6385cdf11957fb686d9434a |
|
BLAKE2b-256 | 7a0c867c6a584866258e3f9f4d6b0f3b982e57888825e5b949bff0c6c656abcb |