diff options
| author | Vladimir Gorej | 2012-06-20 20:49:43 +0200 |
|---|---|---|
| committer | Vladimir Gorej | 2012-06-20 20:49:43 +0200 |
| commit | 178d820541e874fe9913080c5125876b9c0b82ca (patch) | |
| tree | 9253fc8b190c7e9e957d55ebf7de28609a06c276 /brevisurl/settings.py | |
| parent | 395fa7a203aba58e24362f55a6997f2fc82deb2a (diff) | |
| download | django-brevisurl-178d820541e874fe9913080c5125876b9c0b82ca.tar.bz2 | |
Issue #5; Configure protocol of local backend via settings
Diffstat (limited to 'brevisurl/settings.py')
| -rw-r--r-- | brevisurl/settings.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/brevisurl/settings.py b/brevisurl/settings.py index 5037a07..3334798 100644 --- a/brevisurl/settings.py +++ b/brevisurl/settings.py @@ -17,4 +17,7 @@ LOCAL_BACKEND_TOKEN_LENGTH = getattr(settings, 'BREVISURL_LOCAL_BACKEND_TOKEN_LE # Settings for url pattern LOCAL_BACKEND_URL_PATTERN = getattr(settings, 'BREVISURL_LOCAL_BACKEND_URL_PATTERN', - r'^(?P<token>[a-zA-Z0-9]{' + str(LOCAL_BACKEND_TOKEN_LENGTH) + r'})$')
\ No newline at end of file + r'^(?P<token>[a-zA-Z0-9]{' + str(LOCAL_BACKEND_TOKEN_LENGTH) + r'})$') + +# Protocol for local backend +LOCAL_BACKEND_DOMAIN_PROTOCOL = getattr(settings, 'BREVISURL_LOCAL_BACKEND_DOMAIN_PROTOCOL', 'http')
\ No newline at end of file |
