Modified pre_build and settings.py