manage.py: New file.
To bring the project in line with modern Django apps.
This commit is contained in:
		
							parent
							
								
									9dba2f1bb7
								
							
						
					
					
						commit
						be0f82e3cd
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								www/manage.py
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								www/manage.py
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | #!/usr/bin/env python | ||||||
|  | 
 | ||||||
|  | import os | ||||||
|  | import sys | ||||||
|  | 
 | ||||||
|  | if __name__ == "__main__": | ||||||
|  |     www_path = os.path.abspath(os.path.dirname(sys.argv[0])) | ||||||
|  |     if www_path not in sys.path: | ||||||
|  |         sys.path.append(www_path) | ||||||
|  | 
 | ||||||
|  |     os.environ.setdefault("DJANGO_SETTINGS_MODULE", "conservancy.settings") | ||||||
|  | 
 | ||||||
|  |     from django.core.management import execute_from_command_line | ||||||
|  | 
 | ||||||
|  |     execute_from_command_line(sys.argv) | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Brett Smith
						Brett Smith