some snippets was added for django