mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-09 17:35:37 +02:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user