Inserting core app in settings.py and fix views.py