diff --git a/Vagrantfile b/Vagrantfile index 6f6e717..2a16f94 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -8,6 +8,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.ssh.forward_agent = true config.ssh.private_key_path = "deploy/keys/vagrant" + config.ssh.insert_key = false config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--memory", "1024"] diff --git a/deploy/roles/application/files/requirements.txt b/deploy/roles/application/files/requirements.txt index 1a3424e..a10de53 100644 --- a/deploy/roles/application/files/requirements.txt +++ b/deploy/roles/application/files/requirements.txt @@ -1,4 +1,4 @@ -Django==1.7.3 +Django>=1.9,<1.9.99 psycopg2==2.5.4 argparse==1.3.0 diff --git a/deploy/roles/application/templates/django/settings.py.j2 b/deploy/roles/application/templates/django/settings.py.j2 index 90a4fc7..d1a2d31 100644 --- a/deploy/roles/application/templates/django/settings.py.j2 +++ b/deploy/roles/application/templates/django/settings.py.j2 @@ -102,7 +102,7 @@ DATABASES = { # Optimizes read heavy PG workload, install only if PG if '{{ settings_dbbackend }}' == 'postgresql_psycopg2': - DATABASES['default']['OPTIONS'] = {'autocommit': True} + DATABASES['default']['AUTOCOMMIT'] = True # Internationalization LANGUAGE_CODE = 'en-us'