diff options
author | Andy Doan <andy.doan@linaro.org> | 2015-11-10 15:24:58 -0600 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-11-24 15:38:25 +0000 |
commit | 554f79291ab35971a2e7a4e104bd307a379d298e (patch) | |
tree | a8adf0e4ba2ceb2745f2e96e253cb8650a43aa7c /settings.py | |
parent | 42a05d08dc275ea4239a5ce106d67762baf45169 (diff) |
Support download metrics
The current reports logic in our weblogs repository lacks the context to
properly understand what artifacts are being downloaded. The biggest
sticking point is understanding what "latest" really means. Even with
that, you still miss context on things like "what percentage of
downloads are people just clicking latest vs going to a specific build".
This keeps a simple download log that reports can be constructed from.
NOTE: there are 2 phases to creating a Download:
1: "quick insert" of the main details
2: IP location lookups to fill in the country and region.
This commit handles #1. A separate management command will be used to
periodically handle #2.
Change-Id: I38b6759e55c18fffbdffa4fd8d3b5885d3d68868
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/settings.py b/settings.py index 31baf7e..fd168f7 100644 --- a/settings.py +++ b/settings.py @@ -267,8 +267,10 @@ TAB_PRIORITY = ['Release Notes', 'OpenJDK'] BASE_PAGE = 'header.html' +BOT_USER_AGENTS = ['Googlebot/2', 'bingbot/2', 'Yahoo! Slurp', 'Baiduspider/2'] MASTER_API_KEY = "" +TRACK_DOWNLOAD_STATS = False # Try to import local_settings. If it doesn't exist, generate it. It contains # SECRET_KEY (to keep it secret). |