removing non-Django elements