#24983: "domain" in sites framework should clarify if it is a fully-qualified
domain name
--------------------------------------+--------------------
     Reporter:  mandm                 |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Documentation         |    Version:  1.8
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 The documents on sites framework should clarify that the
 
[https://docs.djangoproject.com/en/1.8/ref/contrib/sites/#django.contrib.sites.models.Site.domain
 "domain"] should be a "fully qualified domain name" or just the "domain
 name".

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.4d8c26db3c0715257a08d4c1bf738188%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to