1
0
mirror of https://github.com/django/django.git synced 2025-03-05 23:12:32 +00:00
Danilo Bargen 2e65d56156 Fixed #20003 -- Improved and extended URLValidator
This adds support for authentication data (`user:password`) in URLs,
IPv6 addresses, and unicode domains.

The test suite has been improved by adding test URLs from
http://mathiasbynens.be/demo/url-regex (with a few adjustments,
like allowing local and reserved IPs).

The previous URL validation regex failed this test suite on 13
occasions, the validator was updated based on
https://gist.github.com/dperini/729294.
2015-01-06 14:04:25 -05:00
..
2014-10-22 21:21:02 -04:00
2013-12-24 12:25:17 +01:00
2014-10-08 18:10:50 -04:00
2014-08-18 13:44:10 -04:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2014-12-06 12:06:06 -05:00
2013-12-24 12:25:17 +01:00
2014-12-28 17:02:30 +01:00
2013-02-26 10:00:14 +01:00

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.