• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

Python V3.1 Documentation

You are viewing an old version of the documentation. For the latest, please go here: Python V3.2

Usage Sharing

Usage information provides 51Degrees insight to improve the solutions performance, and identify new or less popular devices quickly. It is amalgamated with other data sources to bring you this solution.

By default, usage sharing with 51Degress is enabled. This can be manually disabled in the following two ways:

Solution 1

Step 1: Navigate to and open the general settings file i.e 51degrees-mobile-detector.settings.py

Step 2: Scroll to the USAGE SHARER SETTINGS section and locate the line USAGE_SHARER_ENABLED = True

###############################################################################
## USAGE SHARER SETTINGS.
###############################################################################

# Indicates if usage data should be shared with 51Degrees.mobi. We recommended
# leaving this value unchanged to ensure we're improving the performance and
# accuracy of the solution.
USAGE_SHARER_ENABLED = True

Step 3: In this line you will need to change True to False

USAGE_SHARER_ENABLED = False

Solution 2

Use if you are using Django

Step 1: Navigate to and open the Django settings file.

Step 2: In the settings.py you will need to add this line 'USER_SHARER_ENABLED': False,

FIFTYONE_DEGREES_MOBILE_DETECTOR_SETTINGS = {
    'DETECTION_METHOD': 'trie-wrapper',
    'PROPERTIES': ('Id', 'IsMobile', 'WebWorkers', 'Html5'),
    'USER_SHARER_ENABLED': False,
}

Step 3: Save settings.py