#21648: Deprecate "is_admin_site" option of auth.views.password_reset()
--------------------------------------+------------------------------------
     Reporter:  brain@…               |                    Owner:  nobody
         Type:  Cleanup/optimization  |                   Status:  closed
    Component:  contrib.auth          |                  Version:  master
     Severity:  Normal                |               Resolution:  fixed
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by googol7):

 A use case is if you are using django CMS (which relies on
 django.contrib.sites) to host a website on xyz.domain.tld and you have
 several subdomains abc.domain.tld, xyz.domain.tld, etc. which do not use
 django CMS but only provide a (branded) login where users can also click
 the "forgot password" link and in the resulting email the referring URL
 (e.g. xyz.domain.tld) should be used.

 django CMS:

 /cms/models/pagemodel.py
 from django.contrib.sites.models import Site
 site = models.ForeignKey(Site, help_text=_('The site the page is
 accessible at.'), verbose_name=_("site"))

 http://docs.django-cms.org/en/2.4.0/extending_cms/api_references.html
 cms.models.pagemodel.Page
 site (django.contrib.sites.models.Site instance) – Site to put this page
 on

 http://docs.django-
 cms.org/en/latest/getting_started/integrate.html#installing
 Be sure to have 'django.contrib.sites' in INSTALLED_APPS and set SITE_ID
 parameter in your settings: they may be missing from the settings file
 generated by django-admin depending on your Django version and project
 template.

--
Ticket URL: <https://code.djangoproject.com/ticket/21648#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 [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/082.a4d92dd8a28f547f0663b8cbaa53bd94%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to