<commit_before># Vagrant Heroku cedar-14 box for python/Django

*In progress. See [issues](https://github.com/philgyford/vagrant-heroku-cedar-14-python/issues).*

A Vagrant box for python/Django development, mimicking a Heroku cedar-14 dyno.

* Ubuntu 14.04 (ubuntu/trusty64)
* PostgreSQL 9.4
* python 2.7.6
* pip, virtualenv, virtualenvwrapper
* Requirements for Pillow
* foreman

If a `requirements.txt` file is found, modules in it will be installed into the virtualenv.

If a `Procfile` is found, foreman will be started.


## Running it

1. Install [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/).

2. Make a copy of `config/vagrant/settings.template.yml` and put it at `config/vagrant/settings.yml`.

3. If you have a `Procfile` and therefore want foreman to run, you *must* change the Django `settings_module` to whatever you want the `DJANGO_SETTINGS_MODULE` environment variable in the virtual machine to be.

4. Either copy, move or symlink `Vagrantfile` and the `config/vagrant` directory into your Django project. So it will be something like:

		config/
			vagrant/
		myproject/
			manage.py
			my_app/
				...
			...
		Procfile
		requirements.txt
		Vagrantfile

	This will vary slightly depending on your Django project's layout.

5. Run `vagrant up` from the same level as `Vagrantfile`.

6. Go to http://localhost:5000/

You will probably want to do `vagrant ssh` and populate the database. This could be smoother...

If you change or update any of the Vagrant stuff, then do `vagrant provision` to have it run through and update the box with changes.


#### Useful / Inspired by:

* https://github.com/kiere/vagrant-heroku-cedar-14/
* https://github.com/ejholmes/vagrant-heroku/
* https://github.com/torchbox/vagrant-django-base/
* https://github.com/torchbox/vagrant-django-template
* https://github.com/jackdb/pg-app-dev-vm/
* https://github.com/maigfrga/django-vagrant-chef/
* https://devcenter.heroku.com/articles/cedar-ubuntu-packages

<commit_msg>Tweak readme<commit_after># Vagrant Heroku cedar-14 box for python/Django

*In progress. See [issues](https://github.com/philgyford/vagrant-heroku-cedar-14-python/issues).*

A Vagrant box for python/Django development, mimicking a Heroku cedar-14 dyno.

* Ubuntu 14.04 (ubuntu/trusty64)
* PostgreSQL 9.4
* python 2.7.6
* pip, virtualenv, virtualenvwrapper
* Requirements for Pillow
* foreman

If a `requirements.txt` file is found, modules in it will be installed into the virtualenv.

If a `Procfile` is found, foreman will be started.


## Running it

1. Install [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/).

2. Make a copy of `config/vagrant/settings.template.yml` and put it at `config/vagrant/settings.yml`.

3. If you have a `Procfile` and therefore want foreman to run, you *must* change the Django `settings_module` to whatever you want the `DJANGO_SETTINGS_MODULE` environment variable in the virtual machine to be.

4. Either copy, move or symlink `Vagrantfile` and the `config/vagrant` directory into your Django project. So it will be something like:

		config/
			vagrant/
		myproject/
			manage.py
			my_app/
				...
			...
		Procfile
		requirements.txt
		Vagrantfile

	This will vary slightly depending on your Django project's layout.

5. Run `vagrant up` from the same directory that the copy/symlink of `Vagrantfile` is in.

6. Go to http://localhost:5000/ in your browser.

You will probably want to do `vagrant ssh` and populate the database. This could be smoother...

If you change or update any of the Vagrant stuff, then do `vagrant provision` to have it run through and update the box with changes.


#### Useful / Inspired by:

* https://github.com/kiere/vagrant-heroku-cedar-14/
* https://github.com/ejholmes/vagrant-heroku/
* https://github.com/torchbox/vagrant-django-base/
* https://github.com/torchbox/vagrant-django-template
* https://github.com/jackdb/pg-app-dev-vm/
* https://github.com/maigfrga/django-vagrant-chef/
* https://devcenter.heroku.com/articles/cedar-ubuntu-packages


{'fraction_non_alphanumeric': 0.10985221674876847, 'fraction_numerical': 0.014285714285714285, 'mean_word_length': 3.8576555023923444, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 20, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381204', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1347, 'n_words': 437}