Fixed has_active_subscription try/except, adding settings.User imports, and removed unnecessary QueryDict import