youtube videos
[redakcja.git] / apps / forms_builder / example_project / manage.py
1 #!/usr/bin/env python
2 from __future__ import absolute_import, unicode_literals
3
4 import sys
5 import os
6
7 from settings import PROJECT_ROOT, PROJECT_DIRNAME
8
9 sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
10 sys.path.insert(0, os.path.abspath(os.path.join(PROJECT_ROOT, "..")))
11
12 if __name__ == "__main__":
13     settings_module = "%s.settings" % PROJECT_DIRNAME
14     os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
15     from django.core.management import execute_from_command_line
16     execute_from_command_line(sys.argv)