1. Tyler Butler
  2. django-project-template

Commits

Tyler Butler  committed c201e58

Switched to the correct API to determine platform.

  • Participants
  • Parent commits cdcf554
  • Branches default

Comments (0)

Files changed (1)

File PROJECT_ROOT/wsgi/_monitor.py

View file
 import os
 import sys
+import platform
 import time
 import signal
 import threading
 _queue = Queue.Queue()
 _lock = threading.Lock()
 
-if sys.platform == 'Windows':
+if platform.system() == 'Windows':
     # Windows version of the _restart method - will restart the entire Apache process
     def _restart(path):
         _queue.put(True)