#NEWLINE# def __exit__( self , exc_type , exc_value , traceback ) : #NEWLINE# #INDENT# if ( not self . settings_path ) : #NEWLINE# #INDENT# raise RuntimeError ( ( '[Django] The path to the site must be specified and should correspond to the directory where the settings.py file is for site %s.' % self . name ) ) #NEWLINE# #UNINDENT# if ( SITES_KEY not in self . django . context ) : #NEWLINE# #INDENT# self . django . context [ SITES_KEY ] = [ ] #NEWLINE# #UNINDENT# if self . use_supervisor : #NEWLINE# #INDENT# self . daemon = False #NEWLINE# self . auto_start = False #NEWLINE# self . django . restart_supervisor_on_changes = True #NEWLINE# #UNINDENT# self . django . context [ SITES_KEY ] . append ( exc_type )