mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Activate virtualenv in production Python code.
The manage.py change effectively switches the Zulip production server to use the virtualenv, since all of our supervisord commands for the various Python services go through manage.py. Additionally, this migrates the production scripts and Nagios plugins to use the virtualenv as well.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							64affb83f9
						
					
				
				
					commit
					a9835c0ab2
				
			@@ -14,6 +14,12 @@ framework.
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
import os
 | 
			
		||||
from os.path import dirname, abspath
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
BASE_DIR = dirname(dirname(abspath(__file__)))
 | 
			
		||||
sys.path.append(BASE_DIR)
 | 
			
		||||
import scripts.lib.setup_path_on_import
 | 
			
		||||
 | 
			
		||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zproject.settings")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user