Add pm2Manager to INSTALLED_APPS and fix duplicate fail2ban

- Add pm2Manager to INSTALLED_APPS to enable template loading
- Fix duplicate fail2ban entry that was causing ImproperlyConfigured error
- Enables pm2Manager/settings.html template to be found by Django
This commit is contained in:
master3395
2026-01-20 01:42:43 +01:00
parent 363a974937
commit 681849361f

View File

@@ -83,9 +83,13 @@ INSTALLED_APPS = [
]
# Add plugins that are installed (plugin installer handles adding/removing)
# discordWebhooks is added by plugin installer when plugin is installed
# Plugins are added by plugin installer when plugins are installed
if os.path.exists('/usr/local/CyberCP/discordWebhooks/__init__.py'):
INSTALLED_APPS.append('discordWebhooks')
if os.path.exists('/usr/local/CyberCP/fail2ban/__init__.py'):
INSTALLED_APPS.append('fail2ban')
if os.path.exists('/usr/local/CyberCP/pm2Manager/__init__.py'):
INSTALLED_APPS.append('pm2Manager')
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',