1. chjacobsen
  2. django-chcms

Wiki

Clone wiki

django-chcms / Home

CHCMS

CHCMS is intended to provide a declarative, template-driven way to add content management to a django project.

Features

The current version of CHCMS has one application: blockedit. This allows a very minimalistic way to manage static content in django-templates.

For instructions on how to install and use the application, see the bundled readme.txt-file.

What it looks like

The following code is all that's needed to manage a section of content in a django-template. It will be added to the database and the admin automatically.

{% load blockedit %}

<html>
      <head>
            <title>Mypage</title>
      </head>
      <body>
           {% section about %}
                 <h1>{% entity text header %}</h1>
                 <p>{% entity longtext body %}</p>
           {% endsection %}
      </body>
</html>

Try it out

$ hg clone http://bitbucket.org/chjacobsen/django-chcms/

Updated