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.6.1.tar.gz
(4.6 MB
view details)
Built Distribution
File details
Details for the file tnnt_templates-2.6.1.tar.gz
.
File metadata
- Download URL: tnnt_templates-2.6.1.tar.gz
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 108e359310fec97570427155236afcf29857f19e2fc5e16e1067cb88ad24be8e |
|
MD5 | 3760efe68afee9f5b35b865cf802fdd7 |
|
BLAKE2b-256 | eb648ed3d654afc00547103fa695ed102520c4ef6ef495fcbf7f16700cd91e01 |
File details
Details for the file tnnt_templates-2.6.1-py3-none-any.whl
.
File metadata
- Download URL: tnnt_templates-2.6.1-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 1e359fdd39cac06be6ae37b6308bb1fe6958fc40675801a0998e4d9e648ac824 |
|
MD5 | 9910621286ed8ff98a06e99a912b3d82 |
|
BLAKE2b-256 | 403f88e4cf02846efe142d73051b0cf7a0d7d9afacfec427e98c5d8ac15db9dc |