﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23716	Reverse url doesn't container port-number	Lars Solberg	nobody	"When developing sites, you are often ending up with using something that is not port 80 or 443 to test your site.
Looks like this breaks the stuff like from django.core.urlresolvers.reverse.
Digging into the problem, I found that the problem was around https://github.com/django/django/blob/1.7/django/http/request.py#L129

The solution is fairly simple by changing the current_uri line to eg:
""""""
current_uri = '%s://%s%s%s' % (self.scheme,
                                         self.get_host(), ':%s' % (self.META['SERVER_PORT'] if self.META['SERVER_PORT'] not in ['80', '443'] else ''), self.path)
""""""

However, I have the feeling that this would have been fixed a long time ago, and is probably left out by design. Or?"	Uncategorized	closed	Core (URLs)	1.7	Normal	invalid			Unreviewed	0	0	0	0	0	0
