Closed mav-erick closed 4 years ago
You need to ensure that Django User Agents is installed. Then you need to add it to the INSTALLED_APPS section in your django config file as well as the 'django_user_agents.middleware.UserAgentMiddleware'
to the MIDDLEWARE section (or MIDDLEWARE_CLASSES depending on your version of django) .
Error in django 1.11. Please help.
if request.user_agent.is_mobile: