Skip to content

The building blocks for a Vagrant environment for Django development.

License

Notifications You must be signed in to change notification settings

jamji/vagrant-django

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vagrant-django

The building blocks for a Vagrant environment for Django development.

Full documentation is available at: https://vagrant-django.readthedocs.io/.

Features

See the features documentation for details on all available features and when they apply.

Also be sure to check out the limitations and restrictions that apply.

A quick feature overview:

  • A secure environment, including locked down SSH access via public key and configurable firewall
  • Development aids: git and ag (silver searcher)
  • Image libraries used by Pillow
  • PostgreSQL, with default database and user
  • Nginx and Gunicorn
  • Supervisor
  • Virtualenv, plus installation of Python dependencies
  • Node.js and npm, plus installation of Node.js dependencies
  • An environment-specific Python settings file
  • Per-project customisation options
  • Config files for the above, seperately configurable for multiple deployments

How to use

  1. Copy the provision/ directory into your project.
  2. Copy the included Vagrantfile or add provision/scripts/bootstrap.sh as a shell provisioner in your existing Vagrantfile, specifying the project name. The included Vagrantfile is pretty basic, but it can be used as a foundation. See documentation on the Vagrantfile for details.
  3. Modify the example provision/env.sh file. See documentation on the env.sh file for details.
  4. Add/modify any further configuration files to provision/conf/. See the configuration documentation for details on what further customisation options are available.
  5. Add any project-specific provisioning steps to a provision/project.sh file. See the project-specific provisioning documentation for details.
  6. Add provision/env.sh (and any other necessary config files) to your .gitignore file, or equivalent. Environment-specific configurations should not be committed to source control.
  7. vagrant up

Additional steps may be required in production environments. See Usage in Production for details.

License

vagrant-django is released under the MIT license, and may be freely included in other projects to support the provisioning of their environments.

About

The building blocks for a Vagrant environment for Django development.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 96.9%
  • Python 3.1%