Commit dac09007 authored by Michal Čihař's avatar Michal Čihař

Documennt ALLOWED_HOSTS setting (fixes #282).

parent 30baaf18
......@@ -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
......
......@@ -404,6 +404,9 @@ SERVER_EMAIL = 'noreply@weblate.org'
# 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': {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment