aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBen Firshman2010-01-25 01:00:07 +0000
committerBen Firshman2014-09-21 17:08:55 -0700
commitc22f6b46e9faecc4d83c6dc575f0179796fc0c1e (patch)
tree95568dfcbd0f8aab24020f37b353aad4cbe484d0 /README.md
parenteb1e1c2feddb282c74dc597c4f51c5ccfe5c7fe1 (diff)
downloaddjango-shorturls-c22f6b46e9faecc4d83c6dc575f0179796fc0c1e.tar.bz2
Added SHORTURLS_DEFAULT_CONVERTER setting so template tag converter can be specified
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 797bd78..f933880 100644
--- a/README.md
+++ b/README.md
@@ -87,3 +87,16 @@ differ.
If not defined, the redirect view will try to guess the proper domain by
consulting the ``django.contrib.sites`` framework, if installed, or the
requested domain, if not.
+
+#### ``SHORTURLS_DEFAULT_CONVERTER``
+
+The converter that is used to translate between short URLs and model IDs.
+Defaults to the built in base 62 conversion.
+
+Available converters:
+
+ - `shorturls.baseconv.base62` Base 62 encoding.
+ - `shorturls.baseconv.base32` [Douglas Crockford's base 32.](http://www.crockford.com/wrmg/base32.html)
+ - `shorturls.baseconv.hexconv` Hex encoding.
+ - `shorturls.baseconv.bin` Binary encoding, because why not.
+