diff --git a/pandora/manage.py b/pandora/manage.py index 529afbda0..762bfa573 100755 --- a/pandora/manage.py +++ b/pandora/manage.py @@ -5,6 +5,12 @@ import sys root_dir = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) os.chdir(root_dir) +python3 = os.path.normpath(os.path.join(root_dir, '..', 'bin', 'python3')) +if os.path.exists(python3) and sys.version_info[0] == 2 and sys.argv[0].endswith('manage.py'): + import subprocess + cmd = [python3] + sys.argv + sys.exit(subprocess.call(cmd)) + # using virtualenv's activate_this.py to reorder sys.path activate_this = os.path.join(root_dir, '..', 'bin', 'activate_this.py') with open(activate_this) as f: diff --git a/vm/LXC_README.txt b/vm/LXC_README.txt index f00aea8a3..bcb0f1bfc 100644 --- a/vm/LXC_README.txt +++ b/vm/LXC_README.txt @@ -22,6 +22,7 @@ echo "pandora:pandora" | chpasswd echo PasswordAuthentication no >> /etc/ssh/sshd_config locale-gen en_US.UTF-8 + export LANG=en_US.UTF-8 cd /root curl -L https://pan.do/ra-install > pandora_install.sh