Skip to content
Rapid Django app development with Vagrant and Cookiecutter Django
Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
Vagrantfile
cookiestrap.sh

README.md

Vagrant box to jump-start Django projects

Effortlessly bootstrap new Django projects, using Vagrant and Cookiecutter Django.

Features

  • Vagrantfile for Ubuntu Trusty (14.04.04 LTS) VirtualBox VM.

  • Isolated Python 3.5.1 virtualenv using pyenv and pyenv-virtualenv.

  • Cookiecutter Django project dependencies pip installed, suitable for development.

  • Fully operational PostgreSQL database, with the same name as the project slug.

  • Completely hands-off. After running vagrant up simply browse to http://localhost:8000 to see the live app.

  • Extra features, courtesy of Cookiecutter Django:

    • If you opted for Grunt:

      • LiveReload support (just install the appropriate extension)
      • Automatic Sass compilation
      • CSS autoprefixing and minification
    • Alternatively, if you opted for Gulp:

      • LiveReload support (just install the appropriate extension)
      • Automatic Sass compilation
      • CSS autoprefixing and minification
      • Javascript minification (everything in /static/js)
      • Lossless image optimization (everything in /static/images)

Usage

$ git clone https://github.com/kappataumu/vagrant-django-cookie-dough
$ cd vagrant-django-cookie-dough
$ vim cookiestrap.sh
# You should now customize all of these.

domain_name="example.com"
project_slug="cookiestrap"
db_user='db_user'
db_password='db_pass'

cookiecutter_options=(
    "project_name=My project name"
    "project_slug=$project_slug"
    "author_name=Your Name"
    "email=Your email"
    "description=A short description of the project."
    "domain_name=$domain_name"
    "version=0.1.0"
    "timezone=UTC"
    "use_whitenoise=y"
    "use_celery=n"
    "use_mailhog=n"
    "use_sentry_for_error_reporting=n"
    "use_opbeat=n"
    "use_pycharm=n"
    "windows=n"
    "use_python2=n"
    "use_docker=n"
    "use_heroku=n"
    "js_task_runner=Grunt"
    "use_lets_encrypt=n"
    "open_source_license=MIT"
)
$ vagrant up

There's a blog post as well, see Jump-starting Django projects with Vagrant and Cookiecutter.

You can’t perform that action at this time.