File: manage.py

package info (click to toggle)
python-django-tree-queries 0.20-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 388 kB
  • sloc: python: 2,269; makefile: 26; sh: 6
file content (14 lines) | stat: -rwxr-xr-x 349 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
import os
import sys
from os.path import abspath, dirname


if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testapp.settings")

    sys.path.insert(0, dirname(dirname(abspath(__file__))))

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)