mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-11 22:50:09 +00:00
19 lines
563 B
Python
Executable File
19 lines
563 B
Python
Executable File
#!/usr/bin/env python3
|
|
"""Django Manage."""
|
|
import warnings
|
|
import os
|
|
import sys
|
|
|
|
warnings.filterwarnings('ignore', category=UserWarning, module='cffi')
|
|
|
|
if __name__ == '__main__':
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mobsf.MobSF.settings')
|
|
|
|
from django.core.management import execute_from_command_line
|
|
if 'runserver' in sys.argv:
|
|
print('We do not allow debug server anymore. '
|
|
'Please follow official docs: '
|
|
'https://mobsf.github.io/docs/')
|
|
sys.exit(0)
|
|
execute_from_command_line(sys.argv)
|