Python – Count lines of code in a Django Project


Is there an easy way to count the lines of code you have written for your django project?

Edit: The shell stuff is cool, but how about on Windows?

Best Solution


shell]$ find /my/source -name "*.py" -type f -exec cat {} + | wc -l

Job's a good 'un.