Fixing settings.py and adding basic tests.