Update settings.py

Fixing some absolute path resolution issues, primarily when getting the template directory. www-data attempts to search for templates in the root directory of the web server without the path.