Screen Shot 2015-09-05 at 17.24.26

Weekend exercise with django-mptt

Welcome to Django Mptt Demo Welcome to Django mptt demo module. This demo explains how to create tree level category and demonstrate mtpp library Repo : Django Mtpp demo features Create Tree level category Display tree level category list in admin panel Display category as tree in another db relation like forenkeyTree (example used in […]

Django dumpdata and loaddata

dumpdata command It is a django management command, which can be use for database backup(import/export) it can be model instance or all database dumpdata: basic command for backup all database

dumpdata  specific app Following command will dump the content in django admin app intoadmin.json file

dumpdata specific table Following command will dump only […]

Install mod_wsgi Mac

We’re going to use Homebrew to install mod_wsgi. There is some extra step to install it, you can read to have more information. Then, load new Formulas into brew:

Finally install mod_wsgi

Once mod_wsgi installed, we’ll enable it in Apache: edit /etc/apache2/http.conf and add this line

Test the config and restart […]

Django Custome Validation model FileField

We can validate field with own validation rule like:



1 2 3 4 10