modernize wsgi entry point
This commit is contained in:
		
							parent
							
								
									1243e2a8ab
								
							
						
					
					
						commit
						abc8914cc6
					
				
					 1 changed files with 4 additions and 9 deletions
				
			
		| 
						 | 
					@ -1,11 +1,6 @@
 | 
				
			||||||
from django.core.handlers.wsgi import WSGIHandler
 | 
					import os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import pinax.env
 | 
					os.environ.setdefault("DJANGO_SETTINGS_MODULE", "symposion_project.settings")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from django.core.wsgi import get_wsgi_application
 | 
				
			||||||
# setup the environment for Django and Pinax
 | 
					application = get_wsgi_application()
 | 
				
			||||||
pinax.env.setup_environ(__file__)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# set application for WSGI processing
 | 
					 | 
				
			||||||
application = WSGIHandler()
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue