Skip to content

Commit

Permalink
Add details about new setting
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoistinen committed Jun 8, 2015
1 parent 19b2446 commit 0ac05ac
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
~~~~~~~~

Expand Down

0 comments on commit 0ac05ac

Please sign in to comment.