videopdf/manage.py

20 lines
552 B
Python
Raw Normal View History

2013-02-12 12:39:52 +05:30
#!/usr/bin/env python
import os
import sys
2013-02-12 19:36:39 +05:30
import os
2013-02-12 12:39:52 +05:30
if __name__ == "__main__":
2013-02-12 19:36:39 +05:30
root_dir = os.path.normpath(os.path.abspath(os.path.dirname(__file__)))
os.chdir(root_dir)
#using virtualenv's activate_this.py to reorder sys.path
activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
2013-02-12 16:16:25 +05:30
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "videopdf.settings")
2013-02-12 12:39:52 +05:30
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)