8 | | Hopefully, removing the dev documentation pages from search engines will help solve |
9 | | this issue, since those who want to read the dev docs can just click through to |
10 | | them by using the version navigation at the bottom of the docs pages. |
11 | | |
12 | | I think there is a small subset of actual Django users who run their applications |
13 | | on trunk. I don't have data to back that up but I can't imagine it's a lot. |
14 | | |
15 | | I talked with Alex earlier today about how to deal with this issue--he also suggested |
16 | | redirecting users from dev -> 1.4 (or whatever the latest version is). I initially |
17 | | thought it was a good idea, but I thought about it and realized you would have to at |
18 | | least add some sort of referrer check. I then thought whether it would be ok to do |
19 | | something like |
20 | | |
21 | | {{{ |
22 | | def conditional_documentation_redirect(request): |
23 | | if not request.META['REFERER'].startswith("http://docs.djangoproject.com"): |
24 | | return HttpResponseRedirect #... and so on |
25 | | }}} |
26 | | |
27 | | This felt wrong to me because if that sort of check were in place, users would |
28 | | no longer be able to permalink to dev docs. |
29 | | |
30 | | PR @ https://github.com/django/djangoproject.com/pull/43 |
| 8 | EDIT: rejected proposal removed, see comment 4. |