Removed secret key from settings and then included settings.py in mainpage