Changeset - be0f82e3cd45
[Not reviewed]
0 0 1
Brett Smith (brett) - 2 years ago 2018-11-18 19:39:18
brett@sfconservancy.org
manage.py: New file.

To bring the project in line with modern Django apps.
1 file changed with 15 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/manage.py
Show inline comments
 
new file 100755
 
#!/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)
0 comments (0 inline, 0 general)