fixed auto-dir settings.py, fixed remove_newlines()