[Django] #27395: Django sitemap and i18n

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[Django] #27395: Django sitemap and i18n

Django
#27395: Django sitemap and i18n
----------------------------------+--------------------
     Reporter:  Hovi              |      Owner:  nobody
         Type:  New feature       |     Status:  new
    Component:  contrib.sitemaps  |    Version:  1.10
     Severity:  Normal            |   Keywords:
 Triage Stage:  Unreviewed        |  Has patch:  0
Easy pickings:  0                 |      UI/UX:  0
----------------------------------+--------------------
 Hello,

 django sitemap supports i18n field, that enables generating language-aware
 sitemaps, here is doc:
 https://docs.djangoproject.com/en/1.10/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.i18n

 Problem is, that it generates them just as each url separately with no
 relations. One of google recommendations is to mark same content in
 different languages using sitemap with xhtml:link element:
 https://support.google.com/webmasters/answer/189077

 Would be cool to add possibility to generate these tags.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/047.83b5fd052bdf86330dd030873efd4541%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Django sitemap and i18n

Django
#27395: Django sitemap and i18n
----------------------------------+--------------------------------------
     Reporter:  Hovi              |                    Owner:  wsterzik
         Type:  New feature       |                   Status:  assigned
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by wsterzik):

 * status:  new => assigned
 * needs_better_patch:   => 0
 * owner:  nobody => wsterzik
 * needs_tests:   => 0
 * needs_docs:   => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:1>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.6b950bbcee8881558f06c7316aa10b75%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Django sitemap and i18n

Django
In reply to this post by Django
#27395: Django sitemap and i18n
----------------------------------+--------------------------------------
     Reporter:  Hovi              |                    Owner:  (none)
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by wsterzik):

 * owner:  wsterzik => (none)
 * status:  assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:2>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.7262dfa9ccbcbe669ca028b8c0ebd1a3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Django sitemap and i18n

Django
In reply to this post by Django
#27395: Django sitemap and i18n
----------------------------------+--------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by Tim Graham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Is the idea to add something like a template tag that generates something
 like:
 {{{
 <link rel="alternate"
    hreflang="fr"
    href="https://docs.djangoproject.com/fr/1.10/ref/">
 ....
 <link rel="alternate"
    hreflang="el"
    href="https://docs.djangoproject.com/el/1.10/ref/">
 <link rel="alternate"
    hreflang="x-default"
    href="https://docs.djangoproject.com/en/1.10/ref/">
 <link rel="alternate"
    hreflang="en"
    href="https://docs
 .djangoproject.com/en/1.10/ref/">
 }}}
 for use on a webpage? (If so, I'm not familiar enough with sitemaps code
 to say whether or not it's feasible.) Or does this involve some change to
 the sitemap itself?

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:1>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.a0159d69e54ee1c7c7f5627287296a7e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Django sitemap and i18n

Django
In reply to this post by Django
#27395: Django sitemap and i18n
----------------------------------+--------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------

Comment (by Hovi):

 Both ways actually make sense (in html page and sitemap) and code
 generating it in both cases would be very similar, but to answer your
 original question - this involves changes to sitemap itself yes.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:2>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.8a5ad3bac0ed1e3cd3a0cf7baf92bdff%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps' (was: Django sitemap and i18n)

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted


Comment:

 What are those changes? Are you able to offer a patch?

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:3>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.d86749cc834641f33a02db4a6422931c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by Hovi):

 * Attachment "sitemap_hreflang.diff" added.

 Patch

--
Ticket URL: <https://code.djangoproject.com/ticket/27395>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.f494e6c1e97c74cc96be9aaa955ffb5a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Hovi):

 I included simple patch to demonstrate what would require changing, by no
 means it's supposed to be final. There may be a little more work to avoid
 duplicities, but it does pretty much everything necessary.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:4>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.4bb7f9a9d2528c4d0dec9247777d554c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Description changed by Hovi:

Old description:

> Hello,
>
> django sitemap supports i18n field, that enables generating language-
> aware sitemaps, here is doc:
> https://docs.djangoproject.com/en/1.10/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.i18n
>
> Problem is, that it generates them just as each url separately with no
> relations. One of google recommendations is to mark same content in
> different languages using sitemap with xhtml:link element:
> https://support.google.com/webmasters/answer/189077
>
> Would be cool to add possibility to generate these tags.
New description:

 Hello,

 django sitemap supports i18n field, that enables generating language-aware
 sitemaps, here is doc:
 https://docs.djangoproject.com/en/1.10/ref/contrib/sitemaps/#django.contrib.sitemaps.Sitemap.i18n

 Problem is, that it generates them just as each url separately with no
 relations. One of google recommendations is to mark same content in
 different languages using sitemap with xhtml:link element:
 https://support.google.com/webmasters/answer/189077
 https://support.google.com/webmasters/answer/2620865

 Would be cool to add possibility to generate these tags.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:5>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.3de4fc76f12ee642b8df4dea81bd3327%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by Hovi):

 * Attachment "sitemap_hreflang.diff" added.

 Path

--
Ticket URL: <https://code.djangoproject.com/ticket/27395>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.d3d053126bae4955ad51c1d2f0bd9602%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Nick Mavrakis):

 Based on `Hovi`'s suggestion I have created a branch
 ([https://github.com/manikos/django/commit/5af8551eb025e561c9674032706ff0078eabe2b3])
 about this.

 How may I proceed on this?

 I would really like to see this as a built-in in Django.
 Until now, I have created a custom `template tag` in my project which
 produces Google's `<link rel="alternate" hreflang="..." ...>` elements. I
 have submitted my sitemap to Google and it has successfully verified.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:6>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.bcdd6a976ebef9c2e73cac98b9b33058%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Tim Graham):

 If you could find another sitemaps user to validate that the design makes
 sense, the next step would be to add tests and documentation, then send a
 pull request.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:7>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.dba913540b85b3ec512341d1154e00c2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Hendy Irawan):

 +1 for this :) I also need such functionality

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:8>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.60ff4e3c2a9faa4f049fdb8172d7ea2b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------
Changes (by Hendy Irawan):

 * cc: Hendy Irawan (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:9>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.1bafba54c03cf47cfc4b4808a7bceda9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Hendy Irawan):

 Temporary workaround: https://github.com/barseghyanartur/django-qartez

 It uses this usage pattern:

 {{{
 class ArticleSitemap(RelAlternateHreflangSitemap):
     # If you want to serve the links on HTTPS.
     protocol = 'https'

     def alternate_hreflangs(self, obj):
        return [('en-us', obj.alternative_object_url),]

     def items(self):
        return FooItem._default_manager.all()
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:10>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.c204ce88a2c9a5c8489403ad2240b842%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Pierre Sassoulas):

 Hello,

 There is `django-hreflang` that seem to do it properly. I just adapted it
 for django 2.0. Maybe we could integrate some or all of its functionality
 directly into django ?

 There is a lot of way to use it, see
 https://bitbucket.org/mverleg/django_hreflang/src/master/

 But I think if its intregrated in django is should be used like this :

 Add `django.(...).AddHreflangToResponse` to `MIDDLEWARE_CLASSES`

 Then in template :

 {{{
 {% load hreflang %}
 <head>
     {% hreflang_tags %}
 </head>
 }}}

 Hope this help.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:11>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.84ae2ef50906732bb99232342e10afec%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
----------------------------------+------------------------------------
     Reporter:  Hovi              |                    Owner:  nobody
         Type:  New feature       |                   Status:  new
    Component:  contrib.sitemaps  |                  Version:  1.10
     Severity:  Normal            |               Resolution:
     Keywords:                    |             Triage Stage:  Accepted
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+------------------------------------

Comment (by Hendy Irawan):

 Now there are at least 3 methods to solve this problem.

 I hope contrib.sitemaps is improved soon. @Tim Graham, there are now 3
 sitemaps users here that need this functionality.
 So the need is valid.

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:12>
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.90760d6554aaba858910b1911cc704e8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
-------------------------------------+-------------------------------------
     Reporter:  Hovi                 |                    Owner:  Florian
                                     |  Demmer
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.sitemaps     |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Florian Demmer):

 * owner:  nobody => Florian Demmer
 * status:  new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:13>
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.78e6cea46658e3bc56a3a15ea55517cc%40djangoproject.com.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
-------------------------------------+-------------------------------------
     Reporter:  Hovi                 |                    Owner:  Florian
                                     |  Demmer
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.sitemaps     |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Florian Demmer):

 * has_patch:  0 => 1


Comment:

 [https://github.com/django/django/pull/11937 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:14>
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.cefc8e13d96549b282683380cd0fb829%40djangoproject.com.
Reply | Threaded
Open this post in threaded view
|

Re: [Django] #27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'

Django
In reply to this post by Django
#27395: Allow generating '<link rel="alternate ... hreflang=...>" for sitemaps'
-------------------------------------+-------------------------------------
     Reporter:  Hovi                 |                    Owner:  Florian
                                     |  Demmer
         Type:  New feature          |                   Status:  assigned
    Component:  contrib.sitemaps     |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * needs_better_patch:  0 => 1
 * needs_tests:  0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/27395#comment:15>
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.1102fcfb50cffea6ac0cbff87deb8343%40djangoproject.com.
12