Python – Count lines of code in a Django Project

djangopython

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

Yep:

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

Job's a good 'un.