Add missing chunks of code

Not sure what happened, but somehow the `settings.py` file was missing a few lines of code. Fixed now.