Alliance Auth Blacklist
raw JSON → 0.2.0 verified Sat May 09 auth: no python
Alliance Auth module that integrates with Alliance Auth's state system. It creates and maintains a 'Blacklisted' state to ensure no services access is granted to blacklisted users. Currently at version 0.2.0, with AA5.0 compatibility. Release cadence is irregular; maintained by Solar Helix Independent Transport.
pip install allianceauth-blacklist Common errors
error ModuleNotFoundError: No module named 'blacklist' ↓
cause The app 'blacklist' is not in INSTALLED_APPS, or the package is not installed.
fix
Add 'blacklist' to INSTALLED_APPS and run 'pip install allianceauth-blacklist'.
error django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: blacklist ↓
cause Another app with the same label 'blacklist' is already installed (e.g., your own custom app).
fix
Rename one of the apps to avoid label conflict.
error AttributeError: 'WSGIRequest' object has no attribute 'user' ↓
cause The blacklist middleware or view is called outside of an authenticated context, often due to incorrect middleware ordering.
fix
Ensure 'django.contrib.auth.middleware.AuthenticationMiddleware' is placed before any blacklist middleware in MIDDLEWARE.
Warnings
gotcha The app must be added as 'blacklist' (lowercase) in INSTALLED_APPS, not as 'allianceauth-blacklist' or 'allianceauth.blacklist'. ↓
fix Add 'blacklist' to your INSTALLED_APPS setting.
deprecated Version 0.1.0 introduced changes for CCP's removal of the Search endpoint; older versions (0.0.x) are incompatible with current ESI. ↓
fix Upgrade to >=0.1.0.
breaking 0.2.0 requires AA5.0; upgrading from previous versions may break if your AA installation is below 5.0. ↓
fix Ensure your Alliance Auth installation is version 5.0 or higher.
Imports
- Blacklist wrong
from allianceauth.blacklist.models import Blacklistcorrectfrom blacklist.models import Blacklist - BlacklistConfig
from blacklist.apps import BlacklistConfig
Quickstart
pip install allianceauth-blacklist
# Add 'blacklist' to INSTALLED_APPS in your AA settings
# Then run:
python manage.py migrate
python manage.py collectstatic
python manage.py blacklist_update