diff options
| author | Vladimir Gorej | 2012-05-29 17:40:00 +0200 |
|---|---|---|
| committer | Vladimir Gorej | 2012-05-29 17:40:00 +0200 |
| commit | 6a0aabe7e1b2120e441f9b8801812a242b70aa25 (patch) | |
| tree | 10450636d0b580e45520ff7d8ee288db9796384a | |
| parent | 8ee2c00f4d6064502ef8ce8b0a793fe81bf5e224 (diff) | |
| download | django-brevisurl-6a0aabe7e1b2120e441f9b8801812a242b70aa25.tar.bz2 | |
Updated readme file concerning configuration of Django Site framework
| -rw-r--r-- | README.rst | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -83,6 +83,21 @@ Configuration 'brevisurl.context_processors.brevisurl_data' ) +**Configure site framework** + +This setting is important for local backend only. At least one Site object +must be created and configured as current via settings.SITE_ID. For development/production +switching I suggest you to use configuration like this. Setting is also important +while using `absurl` templatag. Domain for absolute url is generated from current Site object. + +:: + + if DEBUG: + SITE_ID = 2 # pk for Site object containing your development domain e.g. 'localhost:8000' + else: + SITE_ID = 1 # pk for Site object containing your production domain e.g. 'www.production.net' + + Examples -------- @@ -168,4 +183,4 @@ References - http://github.com/char0n/django-brevisurl - http://pypi.python.org/pypi/django-brevisurl/ - - http://www.codescale.net/en/community#django-brevisurl
\ No newline at end of file + - http://www.codescale.net/en/community#django-brevisurl |
