diff options
| author | Ben Firshman | 2010-01-25 01:00:07 +0000 | 
|---|---|---|
| committer | Ben Firshman | 2014-09-21 17:08:55 -0700 | 
| commit | c22f6b46e9faecc4d83c6dc575f0179796fc0c1e (patch) | |
| tree | 95568dfcbd0f8aab24020f37b353aad4cbe484d0 /README.md | |
| parent | eb1e1c2feddb282c74dc597c4f51c5ccfe5c7fe1 (diff) | |
| download | django-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.md | 13 | 
1 files changed, 13 insertions, 0 deletions
| @@ -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. + | 
