Use the login_required django decorator, added a new item, BASE_URL to settings.py