From 0ac05ac8d7681ee2dcb925bd81988304a23491f4 Mon Sep 17 00:00:00 2001 From: Martin Koistinen Date: Mon, 8 Jun 2015 16:50:01 -0400 Subject: [PATCH] Add details about new setting --- README.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.rst b/README.rst index 5daf3575..1034cb7b 100644 --- a/README.rst +++ b/README.rst @@ -38,6 +38,23 @@ If you want to enable the ajax loading: * Add :code:`url(r'^select2/, include('django_select2.urls')),` to your main ``urls.py``. +Settings +~~~~~~~~ + +To support environments where non-standard URLs would otherwise work, this +project supports the defining of an additional RegEx pattern for validating the +host-portion of the URL. + +For example: + + RFC1123 Pattern + DJANGOCMS_LINK_INTRANET_HOSTNAME_PATTERN = r'[a-z,0-9,-]{1,15}' + NetBios Pattern + DJANGOCMS_LINK_INTRANET_HOSTNAME_PATTERN = r'[a-z,0-9,!@#$%^()\\-\'{}.~]{1,15}' + +If left undefined, the normal Django URLValidator will be used. + + Children ~~~~~~~~