Django: Generic Class Based Views with Object Level Permissions Checking

A common design pattern in Django Class Based Views (CBVs) is checking whether the user is logged-in (authenticated) or not. If the user is authenticated, the view proceeds. If not, the view throws a permission denied exception. For example, take a look at this code: The … Continue reading

Using: SyntaxHighlighter Evolved Shortcode Parameters

I used SyntaxHighlighter Evolved for pasting codes in my blog site. Here’s a quick guide on how I used it. Sample Usage In my article: [python light=”false”]print ‘Hello, World!’[/python] The Output: Shortcode Parameters These are the parameters you can pass to the shortcode and what they do. For the booleans … Continue reading