normandy/manage.py

22 строки
647 B
Python
Исходник Постоянная ссылка Обычный вид История

2015-12-23 01:00:41 +03:00
#!/usr/bin/env python
import os
import sys
2019-03-30 01:36:56 +03:00
import warnings
warnings.filterwarnings(
"ignore",
message="The psycopg2 wheel package will be renamed from release 2.8; in order to keep "
'installing from binary please use "pip install psycopg2-binary" instead. '
"For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.",
)
2015-12-23 01:00:41 +03:00
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "normandy.settings")
2018-06-29 00:00:25 +03:00
os.environ.setdefault("DJANGO_CONFIGURATION", "Development")
2015-12-23 01:00:41 +03:00
from configurations.management import execute_from_command_line
execute_from_command_line(sys.argv)