Skip to content
Snippets Groups Projects
Commit 899132a9 authored by Calen Pennington's avatar Calen Pennington
Browse files

Force django to run using the python from the virtualenv

parent 3dc23eb1
No related branches found
Tags release-2021-06-22-18.58
No related merge requests found
......@@ -35,7 +35,7 @@ end
def django_admin(system, env, command, *args)
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
task :default => [:test, :pep8, :pylint]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment