#32401: Email template for resetting password is missing the port the 
application
is running on
-------------------------------------+-------------------------------------
     Reporter:  Bergiu               |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  contrib.admin        |                  Version:  3.1
     Severity:  Normal               |               Resolution:  needsinfo
     Keywords:  email template       |             Triage Stage:
  reset                              |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * cc: Florian Apolloner (added)
 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 > For now i use a hack, where i put the port in the sites domain name, but
 i think, there should be an option to set the port in this template

 That is not a hack, see the
 [https://docs.djangoproject.com/en/dev/ref/contrib/sites/#get-current-
 site-shortcut get_current_site() docs]. `Site.domain` should contain the
 port if `django.contrib.sites` is installed and the current `Site` is set.
 If not, a `RequestSite` object based on the request is returned.

 Maybe your Web server isn't setting the `SERVER_PORT` header
 appropriately? or, if you're using `HTTP_X_FORWARDED_PORT`, it's a
 duplicate of #31354.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32401#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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.fb1a4118cd1f6e851282ec3668192549%40djangoproject.com.

Reply via email to