notanumber / django-vagrant Goto Github PK
View Code? Open in Web Editor NEWDjango-Vagrant
Django-Vagrant
I get this error when I try to bring up the Vagrant VM:
Vagrantfile:15:in `block (2 levels) in <top (required)>': undefined method `salt_install_type=' for #<VagrantPlugins::Salt::Config:0x000001008cc138> (NoMethodError)
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v2/config/vm_provisioner.rb:42:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v2/config/vm_provisioner.rb:42:in `initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v2/config/vm.rb:154:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v2/config/vm.rb:154:in `provision'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v1/config/vm.rb:146:in `block in upgrade'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v1/config/vm.rb:145:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/kernel_v1/config/vm.rb:145:in `upgrade'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/v2/loader.rb:112:in `block in upgrade'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/v2/loader.rb:110:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/v2/loader.rb:110:in `upgrade'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:124:in `block (3 levels) in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:118:in `upto'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:118:in `block (2 levels) in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:98:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:98:in `block in load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:95:in `each'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/config/loader.rb:95:in `load'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/environment.rb:238:in `config_global'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/environment.rb:443:in `block in action_runner'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/action/runner.rb:28:in `call'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/action/runner.rb:28:in `run'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/environment.rb:251:in `hook'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/lib/vagrant/environment.rb:131:in `initialize'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/bin/vagrant:53:in `new'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/bin/vagrant:53:in `<top (required)>'
from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'
Any idea how I might get around this?
Hi,
thank you a lot for this greate django vagrant template. I have actually the following problem. When i try to work with this configuration and i'm behind a proxy the VM isn't created successfully. The first step has been to configure my proxy. For this case i have used vagrant-proxyconf and apt-get works. Pip didn't :-( Pip ignore the configuration and cannot connect and for all packages i get the error:
Cannot fetch index base URL https://pypi.python.org/simple/
.
Any idea what i could do to set a availabe index_url for pip or how to force pip to use the correct proxy?
Thanks
I found your django-vagrant template and noticed that the requirements are all several versions behind, as well as a lack of a manage.py file and improperly configured database settings (couldn't the local settings be filled out automatically since we define those in the salt files?) I'm working on an update to send as a pull request but I want to get your ideas.
I setup a vagrant using your commands listed and then used vagrant ssh to get in and workon <project_name>. After that I had to sudo django-admin.py startapp testapp to get startapp to work.
When using stuff like south, django-admin.py schemamigration appname errors out due to permissions. sudo django-admin.py schemamigration appname returns schemamigration command not found.
Just curious how to get around this or how you work with it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.