mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-07 15:19:07 +01:00
fix: Restore emailMarketing to INSTALLED_APPS
emailMarketing was removed from INSTALLED_APPS but the plugin directory still exists, causing Django to fail with: 'Model class emailMarketing.models.EmailMarketing doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS' This fixes the HTTP 500 error on /plugins/installed
This commit is contained in:
@@ -65,8 +65,6 @@ INSTALLED_APPS = [
|
||||
|
||||
# Apps with multiple or complex dependencies
|
||||
'emailPremium',
|
||||
'testPlugin',
|
||||
'premiumPlugin',
|
||||
'emailMarketing', # Depends on websiteFunctions and loginSystem
|
||||
'cloudAPI', # Depends on websiteFunctions
|
||||
'containerization', # Depends on websiteFunctions
|
||||
@@ -95,12 +93,6 @@ INSTALLED_APPS = [
|
||||
|
||||
# Add plugins that are installed (plugin installer handles adding/removing)
|
||||
# Plugins are added by plugin installer when plugins are installed
|
||||
if os.path.exists('/usr/local/CyberCP/pm2Manager/__init__.py'):
|
||||
INSTALLED_APPS.append('pm2Manager')
|
||||
if os.path.exists('/usr/local/CyberCP/paypalPremiumPlugin'):
|
||||
INSTALLED_APPS.append('paypalPremiumPlugin')
|
||||
if os.path.exists('/usr/local/CyberCP/examplePlugin/__init__.py'):
|
||||
INSTALLED_APPS.append('examplePlugin')
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
|
||||
Reference in New Issue
Block a user