Catalog PyPI
PACKAGE EXPLORERView in registry

aa-customizer

PyPI

Branding & customization plugin for Alliance Auth — custom logos, login backgrounds, favicons, and more.

allianceauthbrandingcustomizationeveonline
Versions collected1
Direct dependencies4From release 1.3.1
Last observed20 Oct, 16:51 UTC

README

Version 1.3.1 documentation

AA Customizer

📖 Interactive Documentation — Installation guide, field reference, media strategy

A branding & customization plugin for Alliance Auth.

Gives administrators a simple admin-panel UI to customize their Alliance Auth installation without touching code or replacing static files.

Screenshots

Split Screen layout

Split Screen layout

Centered Card layout (default)

Centered Card layout

Side Bar Icon

Sidebar Icon

Custom Login CSS/HTML (Design how you want!)

Login Landing

Login Popup

Features

FeatureWhat it does
Custom site nameOverrides SITE_NAME from local.py across the whole site
Login backgroundURL or uploaded image/video; falls back to a CSS color, then the default AA space background. .mp4, .webm, .ogv URLs play as a fullscreen muted video with configurable loop count (forever, once, or N times)
Login layoutCentered Card, Split Screen (background left), or Split Screen (login left)
Login logoURL or uploaded image shown at the top of the login card
Login title & subtitleWelcome heading and description text on the login card
Login extra HTMLRaw HTML injected below the EVE SSO button (notices, Discord links, etc.)
Custom faviconURL or uploaded image replacing all Alliance Auth browser-tab icons
Navbar logoURL or uploaded image alongside the site name in the top navigation bar
Sidebar logoURL or uploaded image replacing the Alliance Auth logo in the sidebar
Custom CSS — URLExternal stylesheet linked in every page <head>, loaded after the active theme
Custom CSS — inlineCSS text injected via <style> on every page, loaded after the active theme
Extra <head> HTMLRaw HTML at the end of <head> on every page (analytics, font imports, meta tags)
Login Page — CSS URLExternal stylesheet linked only on the login page <head>, after global CSS
Login Page — CSS (Inline)CSS injected only on the login page, after global CSS; use to fully restyle or completely replace the login card with a custom design
Login Page — Extra <head> HTMLRaw HTML injected at the end of <head> on the login page only (font imports, meta tags)
Login Page — Extra Body HTMLRaw HTML injected before </body> on the login page only; combine with the CSS field to build a full custom landing page over the existing login card
Login Page SPA modeTurns the login page into a mini multi-page website with a navigation bar — visitors can browse corp info, check requirements, and then click Sign In
Member dashboard injectionInject custom CSS and HTML into the dashboard that all logged-in members see
Admin dashboard injectionInject custom CSS and HTML into the superuser admin overview page
Restricted admin accessLimit who can edit branding settings to specific user IDs via a local.py setting

Requirements

  • Alliance Auth ≥ 4.0.0 (Bootstrap 5 template set)
  • django-solo
  • Pillow

To prevent confusion on how to get this installed, I figured I would break it down a little more.

After the initial install, migrate, etc. the app will function without having to do any of the extra folder creations by using image URLs.

The upside is, it will work, the downside is, for any user that is located in a country that is blocking certain websites, like Imgur, the images will not appear. (A UK user in our Corp pointed this out to me.)

alt

So, the work around is either:

  • A: Use a service that can provide global hosting for images. For this, I used Cloudflare's R2 Object storage, linked to the custom domain (your Auth URL), which then created a DNS record for the storage. This in turn will expose anything put into the bucket, so it's recommended to only store what is needed, I.E.: pictures. (Tested this by using Proton VPN)

  • B: Do the setup to allow the images to be hosted directly in Auth:


Installation

Bare Metal install

1 — Install the package

# Activate your Alliance Auth virtualenv first, then:
pip install aa-customizer

2 — Add to INSTALLED_APPS

Open your local.py and add above INSTALLED_APPS =:

INSTALLED_APPS.insert(0, 'aa_customizer')

Django searches each app's templates/ folder in INSTALLED_APPS order and uses the first match. Placing aa_customizer first ensures its template overrides are picked up before the Alliance Auth originals.

Note: allianceauth.admin_status (the dashboard version/celery widget) is automatically registered by aa_customizer at startup — you do not need to add it to INSTALLED_APPS manually.

3 — Add the context processor

In local.py, add to the settings section to append the existing TEMPLATES list:

TEMPLATES[0]["OPTIONS"]["context_processors"].append(
    "aa_customizer.context_processors.aa_customizer"
)

MEDIA_ROOT = "/path/to/your/media/"
MEDIA_URL  = "/media/"

4 — Run migrations

python manage.py migrate aa_customizer

5 — Collect static files

python manage.py collectstatic

6 — Configure your web server

Make sure your web server (nginx, Apache, etc.) is configured to serve files from MEDIA_ROOT at MEDIA_URL.

In your nginx.conf, add inside the server {} block:

# Allow uploads up to 20 MB (nginx default is 1 MB — raise this if you
# get "413 Request Entity Too Large" when uploading background images).
client_max_body_size 20m;
# add after location /static
location /media {
    alias /var/www/myauth/media;
    autoindex off;
}

Adjust client_max_body_size to suit your largest file. A 1920×1080 JPEG is typically 1–5 MB; a short MP4 video background can be 10–20 MB. Set it slightly above your expected maximum.

7 — (Optional) Populate the Media Library

Once media is configured, go to AA Customizer → Media Library in the admin panel to upload images. Give each one a descriptive name (e.g. "Corp logo v2", "Winter background"). You can then pick from your library in Custom Branding without re-uploading — just change the dropdown selection to switch images instantly.

Docker install

The recommended approach for Docker is to use URL fields for all images (point at an external CDN, Imgur, GitHub raw assets, etc.) so you don't need to mount a media volume just to serve a few files.

1 — Install the package inside the container

# Activate your Alliance Auth virtualenv first, then:
pip install aa-customizer

2 — Add to INSTALLED_APPS

Open your local.py and add above INSTALLED_APPS =:

INSTALLED_APPS.insert(0, 'aa_customizer')

Django searches each app's templates/ folder in INSTALLED_APPS order and uses the first match. Placing aa_customizer first ensures its template overrides are picked up before the Alliance Auth originals.

Note: allianceauth.admin_status (the dashboard version/celery widget) is automatically registered by aa_customizer at startup — you do not need to add it to INSTALLED_APPS manually.

3 — Add the context processor

In local.py, add to the settings section to append the existing TEMPLATES list:

TEMPLATES[0]["OPTIONS"]["context_processors"].append(
    "aa_customizer.context_processors.aa_customizer"
)

4 — Run migrations

python manage.py migrate aa_customizer

5 — (Optional) Configure media storage

Skip this section if you plan to use URL fields for all images.

a) Add media settings to local.py

MEDIA_ROOT = "/path/to/your/media/"
MEDIA_URL  = "/media/"

b) Add the named volume to docker-compose.yml

The standard AA Docker setup uses a named Docker volume for media. Add it in three places:

  1. In x-allianceauth-base volumes (so gunicorn, beat, and workers all share it):
x-allianceauth-base: &allianceauth-base
  volumes:
    # ... your existing volume mounts ...
    - media-data:/var/www/myauth/media
  1. In the nginx service volumes:
services:
  nginx:
    volumes:
      # ... your existing volume mounts ...
      - media-data:/var/www/myauth/media
  1. In the top-level volumes: section:
volumes:
  media-data:

c) Configure nginx

In your nginx.conf, add the following inside the server {} block:

# Allow uploads up to 20 MB (nginx default is 1 MB — raise this if you
# get "413 Request Entity Too Large" when uploading background images).
client_max_body_size 20m;
# add after location /static
location /media {
    alias /var/www/myauth/media;
    autoindex off;
}

Adjust client_max_body_size to suit your largest file. A 1920×1080 JPEG is typically 1–5 MB; a short MP4 video background can be 10–20 MB. Set it slightly above your expected maximum.

6 — Build and restart

docker compose build
docker compose down
docker compose up -d

7 — Fix volume permissions (if media was configured)

Docker creates named volumes owned by root. The AA container runs as uid/gid 61000. Run this once after first bringing the stack up:

Confirm the uid/gid:

docker compose exec allianceauth_gunicorn ls -la /var/www/myauth/media
# fix ownership
docker compose exec -u root allianceauth_gunicorn chown -R 61000:61000 /var/www/myauth/media

After this, uploads made through /admin/aa_customizer/aacustomizersettings/ will be stored under /var/www/myauth/media/aa_customizer/ and served immediately by nginx.

Usage

  1. Log in to the Alliance Auth admin panel (/admin/).
  2. (Optional) Build your image library — find AA Customizer → Media Library and upload your images there, giving each a name. You can upload as many as you like and switch between them without re-uploading.
  3. Find AA Customizer → Custom Branding in the left-hand sidebar.
  4. For each image slot, choose how to set it:
    • Library — pick from an image you uploaded to the Media Library (recommended when self-hosting media)
    • URL — paste an external link (CDN, Imgur, etc.) — always takes priority
    • Upload — upload a file directly into the field
  5. Fill in any other fields you want and click Save.

Changes take effect immediately on the next page load — no server restart needed.

Field reference

Site

FieldDescription
Site NameOverrides SITE_NAME from local.py

Login Page — Background

FieldDescription
Login Background — URLURL of a background image or video (takes priority over everything). Video files (.mp4, .webm, .ogv) play fullscreen, muted, and auto-paused by the browser when the tab is hidden. Loop behavior is controlled by the Loop Count field below
Login Background — LibrarySelect an image uploaded to the Media Library (takes priority over a direct upload)
Login Background — UploadUpload a background image directly into this field
Login Background ColorCSS color fallback when no image is set, or the color shown behind a video while it loads (e.g. #1a1a2e)
Background Video — Loop Count0 (default) = loop forever. 1 = play once then freeze on the last frame. N = play exactly N times then freeze. Only applies to video backgrounds

Login Page — Layout

FieldDescription
Login Page LayoutCentered Card — login card centered over the full-page background (default). Split Screen — Background Left — background on the left, dark login panel on the right. Split Screen — Login Left — mirrors it.
Split Panel — Show Overlay TextTick to show text on the background panel; untick to hide it entirely
Split Panel — Overlay TextText shown on the background panel. Leave blank to auto-display the site name
Split Panel — Text PositionVertical position of the overlay text: Top, Center, or Bottom

Login Page — Branding

FieldDescription
Login Logo — URLURL of a logo image (takes priority over everything)
Login Logo — LibrarySelect an image from the Media Library (takes priority over a direct upload)
Login Logo — UploadUpload a logo image directly into this field
Login Logo Max Width (px)Maximum display width of the login logo
Login Page TitleCustom heading shown above the SSO button
Login Page SubtitleOptional description text below the title
Login Page Extra HTMLRaw HTML injected below the EVE SSO button (notices, links, etc.)

Favicon

FieldDescription
Favicon — URLURL of a favicon image (takes priority over everything)
Favicon — LibrarySelect an image from the Media Library (takes priority over a direct upload)
Favicon — UploadUpload a favicon image directly into this field
FieldDescription
Navbar Logo — URLURL of a navbar logo image (takes priority over everything)
Navbar Logo — LibrarySelect an image from the Media Library (takes priority over a direct upload)
Navbar Logo — UploadUpload a navbar logo image directly into this field
Navbar Logo Height (px)Display height of the navbar logo
FieldDescription
Sidebar Logo — URLURL of an image to replace the AA logo in the sidebar (takes priority over everything)
Sidebar Logo — LibrarySelect an image from the Media Library (takes priority over a direct upload)
Sidebar Logo — UploadUpload a sidebar logo image directly into this field
Sidebar Logo Width (px)Display width of the sidebar logo

Site-Wide CSS & HTML

FieldDescription
Custom CSS — URLExternal stylesheet URL linked in every page <head>
Custom CSSInline CSS injected via <style> on every page
Extra <head> HTMLRaw HTML injected at the end of <head> on every page

Login Page — SPA Mode

SPA mode turns your login page into a mini website with a navigation bar. Visitors can browse multiple pages (About, Requirements, etc.) before clicking Sign In to get the normal EVE SSO login card.

FieldDescription
Enable Login Page SPAToggle this on to activate SPA mode
SPA Nav Brand TextThe name shown in the top-left corner of the nav bar. Leave blank to use your site name

How to build your SPA pages

With SPA mode on, go to Login Page — Extra Body HTML and paste your pages using this structure:

<div id="aac-spa-content">

  <section data-route="home" data-label="Home">
    <div class="aac-spa-page">
      <p class="aac-spa-corp-tag">YOUR CORP TAG</p>
      <h1 class="aac-spa-hero-title">My Corporation</h1>
      <p class="aac-spa-hero-sub">Short tagline here</p>
      <div class="aac-spa-hero-actions">
        <a href="#about" class="aac-spa-btn aac-spa-btn-outline">About Us</a>
        <a href="#signin" class="aac-spa-btn aac-spa-btn-primary">Sign In →</a>
      </div>
    </div>
  </section>

  <section data-route="about" data-label="About Us">
    <div class="aac-spa-page">
      <h2 class="aac-spa-page-title">About Us</h2>
      <p class="aac-spa-body-text">Tell visitors about your corp here.</p>
    </div>
  </section>

</div>
  • Each <section> becomes one page. The data-route is its internal name; data-label is the nav link text.
  • Nav links are built automatically — no extra setup needed.
  • Linking to href="#signin" closes the SPA and shows the login card.
  • A full ready-to-use scaffold is available in login-spa.html in this repository — copy and paste it into the Extra Body HTML field and edit the text.

Member Dashboard — Custom Code

Inject custom CSS or HTML into the dashboard all logged-in members see.

FieldDescription
Dashboard CSSInline CSS injected on the member dashboard page only
Dashboard — Extra <head> HTMLRaw HTML injected into <head> on the member dashboard only
Dashboard — Extra Body HTMLRaw HTML injected at the bottom of the member dashboard page

Superuser Dashboard — Custom Code

Inject custom CSS or HTML into the admin status overview page (/admin/). Only superusers and staff see this.

FieldDescription
Superuser Dashboard CSSInline CSS injected on the admin overview page only
Superuser Dashboard — Extra <head> HTMLRaw HTML injected into <head> on the admin overview only
Superuser Dashboard — Extra Body HTMLRaw HTML injected at the top of the admin overview page, above the dashboard panels

Image recommendations

FieldRecommended size / format
Login background (image)≥ 1920 × 1080 px, JPEG, PNG, or GIF
Login background (video)1920 × 1080 px, MP4 (H.264) or WebM (VP9); keep under ~15 MB for fast loads
Login logo≥ 256 × 256 px, transparent PNG
Favicon≥ 192 × 192 px, PNG or ICO
Navbar logoTransparent PNG, height ≤ 64 px
Sidebar logoTransparent PNG, width ≤ 256 px

Restricting admin access

By default, any superuser can edit Custom Branding and the Media Library in admin.

If you want to lock those pages down to specific people only — even if other superusers exist — add this to local.py:

AA_CUSTOMIZER_TRUSTED_USER_IDS = [1, 42]

Replace 1 and 42 with the real user IDs of the people who should have access. Anyone not on the list will be turned away even if they are a superuser.

How to find a user's ID: Go to Admin → Authentication → Users, click the user's name, and look at the number in the URL. For example, /admin/auth/user/5/change/ means their ID is 5.

If you leave this setting out of local.py entirely, all superusers retain access as normal.

Security notes

  • Raw HTML fields (Login Page Extra HTML, Extra <head> HTML) are rendered without sanitization and are only editable by Django admin users (staff/superusers).
  • Custom CSS URL is validated as a URL by Django's field validator; only http/https schemes are accepted.
  • AA Customizer works alongside Alliance Auth's built-in Custom CSS admin (/admin/custom_css/customcss/). The customizer's CSS loads after the built-in one, so it takes precedence.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.3.131 Aug 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
thrainkrilleve/aa-customizer

Shared repository data · GitHub

License detected in repository
Not collected
Last push
19 Sept 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

0count
Gauge · observed snapshots20 Oct 2026
10.50
2026-10-20: 0 · observed 2026-10-20T18:41:44.7657519Z
20 Oct20 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2002026-10-20T18:41:44.7657519Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d4ff946b806950178ecf1ecbd4fbef1c3f634aeb3026a7be6cfcb5fa2853ed6d