<commit_before>Cookiecutter Django CRUD
=====================

A cookiecutter template to create a Django app within an existing Django project, with boilerplate including:
    * A barebones Django model.
    * Django CRUD views and templates using django-vanilla-views.
    * A Django ModelForm using bootstrap3.
    * Tests for all of the views using WebTest.
    * Model Mommy generated models for the tests.

Blog post walkthrough at http://wildfish.com/blog/2013/09/25/generating-django-crud-scaffolding-cookiecutter/

Python 2 vs 3
==========

As of now I'm only testing with Python 3. The latest version to include the Python 2.7 compatibility decorators is in the `python2` branch. I don't expect I'll be continuing to maintain the python2 branch, but it should be straightforward and anyone else is welcome to.

It's time you were using Python 3 now!

Quickstart
==========

1. Install cookiecutter, and apps listed in requirements.txt for our generated app.  Install them all with:

.. code-block:: console

    pip install -r https://raw.github.com/wildfish/cookiecutter-django-crud/master/requirements.txt


2. Run cookiecutter using this template.  Note that **it will overwrite existing files without warning if you already have an app dir of the same name**, so make sure your code is checked in or backed up.

.. code-block:: console

    cookiecutter git@github.com:wildfish/cookiecutter-django-crud.git


3. You'll need to add bootstrap3 to your INSTALLED_APPS, along with your new app of course:

.. code-block:: python

    INSTALLED_APPS = (<commit_msg>Added note to README referring to wildfish-django-starter.<commit_after>Cookiecutter Django CRUD
=====================

A cookiecutter template to create a Django app within an existing Django project, with boilerplate including:
    * A barebones Django model.
    * Django CRUD views and templates using django-vanilla-views.
    * A Django ModelForm using bootstrap3.
    * Tests for all of the views using WebTest.
    * Model Mommy generated models for the tests.

Blog post walkthrough at http://wildfish.com/blog/2013/09/25/generating-django-crud-scaffolding-cookiecutter/

This template is now included in my Django project starter template at https://github.com/wildfish/wildfish-django-starter/. If you want to generate an entire Django project from scratch rather than just an app then take a look there.

Python 2 vs 3
==========

As of now I'm only testing with Python 3. The latest version to include the Python 2.7 compatibility decorators is in the `python2` branch. I don't expect I'll be continuing to maintain the python2 branch, but it should be straightforward and anyone else is welcome to.

It's time you were using Python 3 now!

Quickstart
==========

1. Install cookiecutter, and apps listed in requirements.txt for our generated app.  Install them all with:

.. code-block:: console

    pip install -r https://raw.github.com/wildfish/cookiecutter-django-crud/master/requirements.txt


2. Run cookiecutter using this template.  Note that **it will overwrite existing files without warning if you already have an app dir of the same name**, so make sure your code is checked in or backed up.

.. code-block:: console

    cookiecutter git@github.com:wildfish/cookiecutter-django-crud.git


3. You'll need to add bootstrap3 to your INSTALLED_APPS, along with your new app of course:

.. code-block:: python

    INSTALLED_APPS = (
{'fraction_non_alphanumeric': 0.08457276173811606, 'fraction_numerical': 0.012248468941382326, 'mean_word_length': 3.992721979621543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4345234', 'n_tokens_mistral': 996, 'n_tokens_neox': 901, 'n_words': 432}