Just another programmer's site

Month: 4月 2015

Linux: File password protection

Using gpg

Python: password generator

Password generator for myself(works in python3).


Python: General decorator

General decorator, that can be used to class method and function (keyword args are also permitted) by checking whether args[0] is ‘self’ or not and kwargs.

Django: csrf_exempt of class based view

To suppress csrf verification of class based view, @csrf_exempt decorator in doesn’t work in Django 1.4 .

Instead, decorating the as_view function in works fine!


© 2019

Theme by Anders NorenUp ↑