Permalink
Browse files

django: Specify python 2 binary

* When Django supports python 3 and prefers it
  we should update this.
  • Loading branch information...
1 parent bd92486 commit 43928d8def6d3f47c9f808e94ed4f52ed783c1a7 @kallisti5 kallisti5 committed Jan 18, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −4 admin/wizards/django.py
@@ -108,8 +108,9 @@ def Commit_VServer (self):
# Analize Django config file
media_web_dir = django_figure_media_prefix (django_dir)
- # Python
- python_bin = path_find_binary (['python', 'python*'], default="python")
+ # Python 2
+ # (When Django supports python3, this should be updated. Django 1.5?)
+ python_bin = path_find_binary (['python2', 'python', 'python*'], default="python2")
# Add the new rules
config = CONFIG_VSERVER %(locals())
@@ -139,8 +140,9 @@ def Commit_Rule (self):
src_port = cfg_source_find_free_port ()
src_num, src_pre = cfg_source_get_next ()
- # Python
- python_bin = path_find_binary (['python', 'python*'], default="python")
+ # Python 2
+ # (When Django supports python3, this should be updated. Django 1.5?)
+ python_bin = path_find_binary (['python2', 'python', 'python*'], default="python2")
# Add the new rules
config = CONFIG_DIR %(locals())

0 comments on commit 43928d8

Please sign in to comment.