Hey, it would be better if you told us what's happening when you run this code, what errors are you getting and all...
But one thing I noticed on the last line: You don't need to send self to your read_file function, but you do need to specify that you're calling the function from your object, so: return len(self.read_file()) Ask away if you got more questions -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.