go on
[auf_skeleton_django.git] / project_name / manage.py
CommitLineData
87a6b693
OL
1# -*- coding: utf-8 -*-
2
e29df00c
OL
3import os
4import sys
5
87a6b693
OL
6PROJECT_DIR = os.path.abspath(os.path.dirname(__file__))
7ROOT_DIR = os.path.dirname(PROJECT_DIR)
8VENV_DIR = os.path.join(ROOT_DIR, '.virtualenv')
9
10sys.path.append(ROOT_DIR)
11
12activate_this = os.path.join(VENV_DIR, 'bin/activate_this.py')
13execfile(activate_this, dict(__file__=activate_this))
e29df00c
OL
14
15if __name__ == "__main__":
16 from django.core.management import execute_from_command_line
17 execute_from_command_line(sys.argv)