Skip to content
Browse files

Documennt ALLOWED_HOSTS setting (fixes #282).

  • Loading branch information...
1 parent 30baaf1 commit dac09007b315b2a8633a8c69f8034716fbee3053 @nijel committed
Showing with 14 additions and 0 deletions.
  1. +11 −0 docs/install.rst
  2. +3 −0 weblate/settings_example.py
View
11 docs/install.rst
@@ -118,6 +118,17 @@ options:
.. seealso:: https://docs.djangoproject.com/en/1.4/ref/settings/#admins
+``ALLOWED_HOSTS``
+
+ If you are running Django 1.5 or newer, you need to set this to list of
+ hosts your site is supposed to serve. For example:
+
+ .. code-block:: python
+
+ ALLOWED_HOSTS = ['demo.weblate.org']
+
+ .. seealso:: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-ALLOWED_HOSTS
+
``DATABASES``
Connectivity to database server, please check Django's documentation for more
View
3 weblate/settings_example.py
@@ -404,6 +404,9 @@
# the site managers. Used for registration emails.
DEFAULT_FROM_EMAIL = 'noreply@weblate.org'
+# List of URLs your site is supposed to serve, required since Django 1.5
+ALLOWED_HOSTS = []
+
# Example configuration to use memcached for caching
#CACHES = {
# 'default': {

0 comments on commit dac0900

Please sign in to comment.
Something went wrong with that request. Please try again.