django implementation for nnfoto