Changing text file to django logging