forked from shestera/django-multisite
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
A domain name can be supplied in a number of ways. I found out, that multisite doesn't account for that. For example domain names example.com and example.com. which refer to the same object do not behave as such.
from multisite.models import Alias
Alias.objects.resolve('example.com') # Returns <Alias: example.com -> example.com>
Alias.objects.resolve('example.com.') # Returns NoneI suggest to convert the domain name into preferred name syntax, see https://tools.ietf.org/html/rfc1035.html#section-2.3.1, before the domain is actually resolved.
Metadata
Metadata
Assignees
Labels
No labels