A simple skeleton of Django application provisioned with Vagrant + Parallels Desktop. This example is for beginners that need some starting ground to experiment with.
Contents:
- A
Vagrantfilecontaining virtual machine settings install_packages.shis called after creating the VM to install additional softwarerequirements.txtspecifies which Python packages to install
First, install Vagrant. Then use the built in plugin manager to install Parallels Desktop compatibility module:
vagrant plugin install vagrant-parallelsThen get the sample code:
git clone https://github.com/Parallels/vagrant-django-example.git
cd vagrant-django-exampleNow, to produce the virtual machine:
vagrant up --provider=parallelsThe only thing left is to create a Django project and start a HTTP server.
vagrant ssh
#(then, within the SSH session:)
django-admin.py startproject vagrant_django .
nohup python manage.py runserver [::]:8000 >&/dev/null &
exitNow if you point your browser to http://localhost:8000, you'll see a fresh Django installation.