Added extra check to avoid problems with doctests in separate txt files.
Added a doctest in a separete txt file.
Made doctest python3 compatible.
Merge pull request #90 from jjmurre/master

Fix to enable running doctests with pytest_django