Cookiecutter template for creating a new django site
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 53 commits behind nens:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cookiecutter_tests
{{cookiecutter.project_slug}}
.gitignore
CHANGES.rst
Jenkinsfile
LICENSE
README.rst
bootstrap.py
buildout.cfg
cookiecutter.json
setup.cfg
setup.py

README.rst

N&S django site cookiecutter template

Template for cookiecutter so that you can create a fresh Django site project. It replaces the old "nensskel" tool.

Using this cookiecutter template

Install cookiecutter ("pip install cookiecutter").

Run the following command and answer the questions:

$ cookiecutter https://github.com/nens/cookiecutter-djangosite-template

Development of this template itself

We don't need to run inside a vm/docker ourselves, so to set it up and test it, just do the regular:

$ python3 bootstrap.py
$ bin/buildout
$ bin/test

The test, however, does use docker and docker-compose:

  • There's a test that checks if the template itself generates OK without errors.
  • There's a second test that uses the template-generated docker-compose setup to run the bin/test of the generated django.

We don't really need any python code ourselves, so our own setup.py doesn't actually point at any code. But it is set up so that bin/test finds and runs the tests inside ./cookiecutter_tests/ just fine.