djangosnippets.org: Latest snippets posted by nikolajhttps://djangosnippets.org/users/nikolaj/2008-03-26T20:55:52.895490-05:00nikolajRestrict Flatpage To Group
2008-03-26T20:55:52.895490-05:00nikolajhttps://djangosnippets.org/snippets/668/<p>Simple little flatpage wrapper view that lets you easily block off certain areas of flatpages to only a certain user group. Allows superuser in as well.</p>
Freely redistributableSearchable Media
2008-03-21T15:51:14.459346-05:00nikolajhttps://djangosnippets.org/snippets/652/<p>This app allows you to utilize mysql's fulltext searching over multiple models and multiple apps, letting the site search seem more intuitive, yet still allow your content to be very structured. Essentially, it creates an entire new model that associates objects to a chunk of text to search efficiently over …</p>
Freely redistributableRecaptcha with Django Comments
2007-11-21T12:18:59.821851-06:00nikolajhttps://djangosnippets.org/snippets/478/<p>Working off b23's <a href="http://www.djangosnippets.org/snippets/433/">recaptcha support</a>, I have hacked a way to add recaptcha support using existing comments. I am sure there is a better way, and ultimately I will suggest a patch to add captcha support as an option, but for now I hope this helps. For a more …</p>
Freely redistributableEmail on new comments
2007-08-15T16:50:50.008820-05:00nikolajhttps://djangosnippets.org/snippets/366/<p>I know ubernostrum has the nice comment_utils, but I need something that would notify the owner of the comment's content object (where the model has a foreignkey field to django.contrib.auth.models.User), but I didn't need all the moderation stuff. I stuck this in my models.py, where YOURMODEL is the name of …</p>
Freely redistributable