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

Better directory definition

parent 8f0e58df
...@@ -32,7 +32,10 @@ ...@@ -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 }}&amp;dir=back">{% trans "Previous" %}</a>
<a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a> <a class="button" href="{{ unit.translation.get_translate_url }}?type={{ type }}&amp;oldpos={{ unit.position }}">{% trans "Next" %}</a>
</td><td> </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> </td></tr>
</table> </table>
......
# Django settings for weblate project. # Django settings for weblate project.
# -*- coding: UTF-8 -*- # -*- coding: UTF-8 -*-
from socket import gethostname import os
DEBUG = True DEBUG = True
TEMPLATE_DEBUG = DEBUG TEMPLATE_DEBUG = DEBUG
...@@ -23,17 +23,7 @@ DATABASES = { ...@@ -23,17 +23,7 @@ DATABASES = {
} }
} }
HOSTNAME = gethostname() WEB_ROOT = os.path.dirname(os.path.abspath(__file__))
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/'
# Local time zone for this installation. Choices can be found here: # Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # 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