An example where things can be confusing:
I have a setup where all requests to non-www domain i.e.
`http://example.com` are redirected (with status 301) to
`http://www.example.com` by the webserver. Hence I've set my preferred
site in google webmasters tool as `www.example.com` (as opposed to
`example.com`). When I use the sitemap framework, the urls generated are
`http://example.com/abc` which is incorrect in my case. This makes me
think that the domain in sites framework should have been
`www.example.com` (instead of `example.com`). This is not evident from the
documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/24983>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* easy: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Yes, I believe it should be fully-qualified. On djangoproject.com, for
example, we have the domains docs.djangoproject.com and
www.djangoproject.com.
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:1>
* status: new => assigned
* owner: nobody => bipsandbytes
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:2>
Comment (by bipsandbytes):
Fixed in [https://github.com/bipsandbytes/django/tree/ticket_24983]
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:3>
Comment (by bipsandbytes):
Pull request here: https://github.com/django/django/pull/4903
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34047b23e284fd3459903294a5776b67c3e33ed9" 34047b2]:
{{{
#!CommitTicketReference repository=""
revision="34047b23e284fd3459903294a5776b67c3e33ed9"
Fixed #24983 -- Clarified contrib.sites Site.domain is fully qualified.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"6aa618bae35d7f7f8b9b270a4da7afa97512c40d" 6aa618ba]:
{{{
#!CommitTicketReference repository=""
revision="6aa618bae35d7f7f8b9b270a4da7afa97512c40d"
[1.8.x] Fixed #24983 -- Clarified contrib.sites Site.domain is fully
qualified.
Backport of 34047b23e284fd3459903294a5776b67c3e33ed9 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24983#comment:6>