Commit 899132a9 by Calen Pennington

Force django to run using the python from the virtualenv

parent 3dc23eb1
...@@ -35,7 +35,7 @@ end ...@@ -35,7 +35,7 @@ end
def django_admin(system, env, command, *args) def django_admin(system, env, command, *args)
django_admin = ENV['DJANGO_ADMIN_PATH'] || select_executable('django-admin.py', 'django-admin') django_admin = ENV['DJANGO_ADMIN_PATH'] || select_executable('django-admin.py', 'django-admin')
return "#{django_admin} #{command} --settings=#{system}.envs.#{env} --pythonpath=. #{args.join(' ')}" return "python `which #{django_admin}` #{command} --settings=#{system}.envs.#{env} --pythonpath=. #{args.join(' ')}"
end end
task :default => [:test, :pep8, :pylint] task :default => [:test, :pep8, :pylint]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment