15 lines
360 B
Python
15 lines
360 B
Python
"""WSGI entry point for cPanel's Phusion Passenger application manager."""
|
|
|
|
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
APP_ROOT = Path(__file__).resolve().parent
|
|
if str(APP_ROOT) not in sys.path:
|
|
sys.path.insert(0, str(APP_ROOT))
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
|
|
|
from core.wsgi import application # noqa: E402, F401
|