#18517: URLField does not support url with underscore -----------------------------+-------------------------------------- Reporter: guoqiao | Owner: nobody Type: Bug | Status: closed Component: Core (URLs) | Version: 1.4 Severity: Normal | Resolution: wontfix Keywords: URLFiled | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -----------------------------+-------------------------------------- Changes (by claudep):
* status: new => closed * resolution: => wontfix Comment: The Django URLValidator is aiming to check if URLs are valid according to official rules (RFC 1034/1035) which forbid the usage of underscores in hostnames (read also http://www.quora.com/Domain-Name-System-DNS/Why-are- underscores-not-allowed-in-DNS-host-names). If you want to relax rules for your particular usage, just subclass fields/validators and adapt them. But I don't think we should change the default validator for broken existing URLs. About the example you provided, see https://github.com/rtfd/readthedocs.org/issues/148 -- Ticket URL: <https://code.djangoproject.com/ticket/18517#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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.