This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef' | |
require 'chef/config' | |
require 'chef/knife' | |
current_dir = File.dirname(__FILE__) | |
Chef::Config.from_file(File.join(current_dir, '.chef', 'knife.rb')) | |
Vagrant::Config.run do |config| | |
config.vm.provision :chef_client do |chef| | |
chef.chef_server_url = Chef::Config[:chef_server_url] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://code.djangoproject.com/ticket/17209 | |
import urlparse | |
from django.conf import settings | |
from django.core.urlresolvers import reverse_lazy | |
from django.http import HttpResponseRedirect, QueryDict | |
from django.utils.decorators import method_decorator | |
from django.utils.http import base36_to_int | |
from django.utils.translation import ugettext as _ | |
from django.views import generic |