File: manage.py

package info (click to toggle)
python-django-otp 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 584 kB
  • sloc: python: 2,230; makefile: 152; sh: 6
file content (22 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python

"""
Convenience wrapper for the test project:

  ./manage.py test django_otp

It's not really useful for anything else.
"""

import os
import site
import sys


if __name__ == "__main__":
    site.addsitedir('test')
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)