Terra Nanotech Auth Templates

Terra Nanotech Template Overrides for Alliance Auth

Important Information
[!WARNING]
These template overrides are specially tailored for the corporation Terra Nanotech.
They override templates of apps we use, so it looks like we want it to. This
might entail changes to templates that also change the behavior in a way we like it
to be changed.
If you install these template overrides, you need to be aware there will be
no support for any kind of issues you might encounter, and you have to figure it out
on your own.
Install
pip install tnnt-templates==3.13.2
In local.py
right after INSTALLED_APPS
:
INSTALLED_APPS.insert(
0, "tnnt_templates"
)
if "tnnt_templates" in INSTALLED_APPS:
INSTALLED_APPS += [
"tnnt_templates.theme.terra_nanotech",
]
INSTALLED_APPS.remove("allianceauth.theme.darkly")
INSTALLED_APPS.remove("allianceauth.theme.flatly")
INSTALLED_APPS.remove("allianceauth.theme.materia")
if "aagdpr" in INSTALLED_APPS:
INSTALLED_APPS.remove("aagdpr.theme.darkly")
INSTALLED_APPS.remove("aagdpr.theme.flatly")
INSTALLED_APPS.remove("aagdpr.theme.materia")
DEFAULT_THEME = (
"tnnt_templates.theme.terra_nanotech.auth_hooks.TerraNanotechThemeHook"
)
DEFAULT_THEME_DARK = (
"tnnt_templates.theme.terra_nanotech.auth_hooks.TerraNanotechThemeHook"
)
TEMPLATES[0]["OPTIONS"]["context_processors"].append(
"tnnt_templates.context_processors.tnnt_settings"
)
TNNT_TEMPLATE_ENTITY_ID = 8154711
TNNT_TEMPLATE_ENTITY_TYPE = "corporation"
TNNT_TEMPLATE_ENTITY_NAME = "My Awesome Corp/Alliance"
Important
If you are using AA-GDPR
, the template stuff needs to be after the AA_GDPR
entry, like this:
INSTALLED_APPS.insert(0, "aagdpr")
AVOID_CDN = True
INSTALLED_APPS.insert(0, "tnnt_templates")