-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanage.py
More file actions
23 lines (18 loc) · 802 Bytes
/
manage.py
File metadata and controls
23 lines (18 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from django.core.management import execute_from_command_line
import os
import sys
# from set_environment import DeployEnv
# from temp_config.set_environment import DeployEnv
#this needs to be added so that the stting in the subdirectory django app can be found
root_path = os.path.abspath(os.path.split(__file__)[0])
print('root path = {root_path}')
sys.path.insert(0, os.path.join(root_path, 'splash_app'))
sys.path.insert(0, root_path)
if __name__ == "__main__":
print('manage.py')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings_docker")
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
# os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings_apache")
print(sys.argv)
# wsgi needs to know about where the settings file is
execute_from_command_line(sys.argv)