Login

Snippets by laxu

Snippet List

simple guestbook

a simple guestbook. the guestbook-area and entries can (and should) be styled by CSS. The template extends a "base.html", which should contain a "content" block. The Model is very simple without moderation, admin-comment or any other advanced features, but its easy to extend. i.e. add a Field "active=models.BooleanField()" and add "exclude=['active']" to the forms.EntryForm.Meta class for moderated Entries. Now you can switch the entries on/off in the admin-interface by setting active=True/False this snippet is public domain, use for everything you want. UPDATE: added basic SPAM protection (a do_not_fill field), but you might want to try a captcha-form/Field like snippet 812

  • guestbook
  • guest
  • book
Read More

laxu has posted 2 snippets.