-
Notifications
You must be signed in to change notification settings - Fork 0
/
manager.py
64 lines (49 loc) · 2.59 KB
/
manager.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
"""
Command-line utility for administrative tasks.
# For more information about this file, visit
# https://docs.djangoproject.com/en/2.1/ref/django-admin/
"""
import os
import sys
error_message = "Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?"
notifications_value = """
Welcome to Enjoy DustFlight Professional System
Maybe there are something error at current process running:
[ERROR] =>
"""
def start_application():
print("---------------------------------------------------------------------------------------")
running_welcome_info
print("[NOTICE] Engine Processing Running ====>>> [running_welcome_info] Successfully !")
print("---------------------------------------------------------------------------------------")
print("---------------------------------------------------------------------------------------")
engine_processing_start()
print("[NOTICE] Engine Processing Running ====>>> [engine_processing_start] Successfully !")
print("---------------------------------------------------------------------------------------")
def running_welcome_info():
print("##########################################################################")
print("# #")
print("# Wlecome to running DustFlight_VNS.wsgi Powered By DustFlight #")
print("# #")
print("##########################################################################")
def engine_processing_start():
try:
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'DustFlight_Studio.settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
except Exception as ex:
print("[NOTICE] Notifications Value => [%s]" %
str(notifications_value))
print("[INVALID] Running Django Project Engine Invalid By => [%s]" % str(ex))
def main():
print("=======================================================================================")
print(
"#################################[Processing_Running!]#################################")
start_application()
print(
"#################################[Processing_Running!]#################################")
print("=======================================================================================")
if __name__ == '__main__':
main()