Commit 1a53ba64 authored by Michal Čihař's avatar Michal Čihař

Better directory definition

parent 8f0e58df
......@@ -32,7 +32,10 @@
<a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}&amp;dir=back">{% trans "Previous" %}</a>
<a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a>
</td><td>
<input class="button" type="submit" value="{% trans "Save" %}" />
{{ if user.is_authenticated }}
<input class="button" type="submit" value="{% trans "Save" %}" name="save" />
{{ endif }}
<input class="button" type="submit" value="{% trans "Suggest" %}" name="suggest" />
</td></tr>
</table>
......
# Django settings for weblate project.
# -*- coding: UTF-8 -*-
from socket import gethostname
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
......@@ -23,17 +23,7 @@ DATABASES = {
}
}
HOSTNAME = gethostname()
if HOSTNAME == 'rincewind':
WEB_ROOT = '/home/mcihar/private/weblate/'
elif HOSTNAME == 'raptor':
WEB_ROOT = '/home/nijel/work/weblate/'
elif HOSTNAME == 'nutt':
WEB_ROOT = '/home/nijel/weblate/'
elif HOSTNAME == 'web':
WEB_ROOT = '/var/lib/django/weblate/'
else:
WEB_ROOT = '/home/nijel/work/weblate/'
WEB_ROOT = os.path.dirname(os.path.abspath(__file__))
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
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