Skip to main content

Django code skeletons

nensskel provides so-called “paster templates” for easy creation of new django applications, websites and python libraries. They’re not fully generic, as they originate within one company. See the note further down.

The nensskel script creates a directory structure with lots of basic files (like a readme and a setup.py) already there and partially filled in. Optionally it also creates a trunk/tags/branches structure in svn for you.

Just call the nensskel script to get usage information.

Installation can be done by a simple:

$> easy_install nensskel

Company-centricity

Nensskel originates at Nelen & Schuurmans, so we’ve of course set it up just the way we like it. And we change it the way we like it.

It does, however, give you a good example for full django applications/sites with a complete setup. For example, the django sites come with a full-blown apache config. And django-staticfiles is included for the easy css/js setup.

Example for your own skeleton

When you want to create your own skeleton, nensskel can be a nice, small example. Just download the .tar.gz and unpack it.

Do the regular python bootstrap.py && bin/buildout and you’re set up. The nensskel and paster script are created in the bin/ directory.

There’s one python script in nensskel/*.py per template. The actual templates are in nensskel/templates/*. See http://pythonpaste.org/script/developer.html for some limited documentation on what paster can do. If you want more elaborate examples: http://svn.plone.org/svn/collective/ZopeSkel/trunk/ is the most elaborate set of templates available.

Changelog for nensskel

1.1.1 (2010-08-10)

  • Documentation update.

1.1 (2010-08-10)

  • Changed test setup of djangoapp and lizardsite to match Reinout’s latest experiments :-)

1.0 (2010-08-03)

  • Added coverage support both to nensskel itself and to the templates.

0.5 (2010-08-02)

  • Added django compressor settings to the lizardsite template.

  • Added lizard-ui as a standard dependency for django applications.

0.4 (2010-05-20)

  • Removed ipython as it regularly fails to download, sadly. Can be re-added after buildout gains a timeout setting (in the .cfg files).

0.3 (2010-03-22)

0.2 (2010-02-12)

  • Django fixes after using skeleton in real life.

0.1 (2010-02-11)

  • Added nensskel script as a handy wrapper around paster create.

  • Added lizardsite skeleton (which needs checking and probably modifications).

  • Added djangoapp skeleton.

  • Added library skeleton.

  • Added test that creates instances of all skeletons and runs their bin/buildout. Smoke test: switch everything on and see if smoke comes out.

  • Reinout copied relevant parts from the thaskel and zestskel that he made for the two previous companies he worked for.

Todo

  • Add example doctest setup after I figured out how to get doctests running again with this django+nose+djangorecipe combination.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nensskel-1.1.1.tar.gz (29.3 kB view details)

Uploaded Source

File details

Details for the file nensskel-1.1.1.tar.gz.

File metadata

  • Download URL: nensskel-1.1.1.tar.gz
  • Upload date:
  • Size: 29.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nensskel-1.1.1.tar.gz
Algorithm Hash digest
SHA256 31834900ac9404ca3141815fce15fcebeb572b9d86e7e1ba05f1601b13586000
MD5 afc5d6fdd1b791d0852d6a3956f87080
BLAKE2b-256 5eac07fec1380a87c1df661993159f206af7cc79363f6332553d388c4100396d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page