django-addendum 0.2.1

Simple template-based content swapping for CMS-less sites

Change snippets of copy on your site, on the fly, for any application, and without a full-fledged CMS.

Solving queries like:

Hey, we need to change the greeting on login from "Hi!" to "Sup?"

And:

The footer copy needs to be udpated.

And:

The marketing team would really like to be able to change that message on a monthly basis. I don't care that that's a third-party appliwhoozitz!

This is all simple stuff and it's probably coded right into your templates. Changing it is easy enough, but requires a developer and then a release. Boo!

Usage

Just add addendum_tags to your templates:

{% load addendum_tags %}

{% snippet 'home:greeting' %}Hi!{% endsnippet %} {{ user.first_name }}

<footer>
  {% snippet 'home:footer' %}&copy; 2011 by Acme Corp.{% endsnippet %}
</footer>

Now you can edit content for these placeholders from the admin interface. If you don't add anything or you delete text, the site text will always revert to what is in the template.

Use it for small bits of user modifiable text from any template on your site, and for swapping out lorem ipsum text when prototyping.

Find some more information in the docs.

Installation

Install the package from PyPI:

pip install django-addendum

Add it to your INSTALLED_APPS tuple:

INSTALLED_APPS += ('addendum')

Sync your database or migrate if you have South installed.

Contributing

Contributions are welcome but should follow some basic guidelines to make life easier:

  • Pull requests should be made from distinct branches that include only the reuqested changes branched from the canonical master branch.
  • Include tests for bug fixes and new features. Ensure that your Travis build is passing before submitting the pull request.
  • Include documentation for any new features.
  • For multi-commit updates please squash commits so the packager maintainer only has at most a few commits to review.
  • Please limit changes to your specific pull request (excluding extraneous changes and please do not bump the version for your own changes).

License

BSD licensed.

BSD License

Author

Ben Lopatin

Pip

django-addendum==0.2.1

Classifiers

  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 4 - Beta
File Type Python Version Uploaded On Downloads
django_addendum-0.2.1-py2.py3-none-any.whl Wheel 2.7 May 30, 2014 784
django-addendum-0.2.1.tar.gz Source May 30, 2014 641
Version Release Date
0.2.1 May 30, 2014
0.1.0 April 8, 2013
0.0.5 April 2, 2013
0.0.4 March 29, 2013
0.0.3 March 29, 2013
0.0.2 March 28, 2013
0.0.1 March 28, 2013
-0.2.0- May 30, 2014
Date Package Version Action
Nov. 4, 2014, 12:48 p.m. django-addendum 0.1.0 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.2.1 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum -0.2.0- Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.0.2 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.0.3 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.0.1 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.0.4 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum 0.0.5 Release Created
Nov. 4, 2014, 12:48 p.m. django-addendum Package Created