PassMCQ/__init__.py:
========================
import pymysql
pymysql.install_as_MySQLdb()





.htaccess
====================
RewriteEngine On

# Serve static files
RewriteCond %{REQUEST_URI} ^/static/
RewriteRule ^static/(.*)$ /home/passmcqc/PassMCQ/staticfiles/$1 [L]

# Serve media files
RewriteCond %{REQUEST_URI} ^/media/
RewriteRule ^media/(.*)$ /home/passmcqc/PassMCQ/media/$1 [L]





passenger_wsgi.py:
===========================
import sys
import os

sys.path.insert(0, '/home/passmcqc/PassMCQ')
os.environ['DJANGO_SETTINGS_MODULE'] = 'passMCQ.settings'

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()





passenger.json:
==============================
{
  "app_root": "/home/passmcqc/PassMCQ",
  "app_type": "wsgi",
  "startup_file": "passenger_wsgi.py",
  "python": "/opt/alt/python311/bin/python3.11",
  "environment": "production",
  "log_level": 3,
  "max_pool_size": 6,
  "min_instances": 1,
  "spawn_method": "direct",
  "user": "passmcqc",
  "static_files_dir": "staticfiles",
  "static_url_prefix": "/static"
}
