fix settings:

use django settings system instead of non-existant
settings module
fix: new_file() takes at most 6 arguments (7 given)