Installation#
Requirements#
As of version 0.9.0, Rosetta supports Django 1.11 and up.
Install Rosetta#
pip install django-rosetta
Add
'rosetta'
to the INSTALLED_APPS in your project’ssettings.py
Add an URL entry to your project’s
urls.py
, for example:from django.conf import settings from django.urls import include, re_path if 'rosetta' in settings.INSTALLED_APPS: urlpatterns += [ re_path(r'^rosetta/', include('rosetta.urls')) ]
Note: you can use whatever you wish as the URL prefix.
To uninstall Rosetta, simply comment out or remove the 'rosetta'
line in your INSTALLED_APPS
Testing#
pip install tox && tox
Security#
Because Rosetta requires write access to some of the files in your Django project, access to the application is restricted to the administrator user only (as defined in your project’s Admin interface)
If you wish to grant editing access to other users:
Create a ‘translators’ group in your admin interface
Add the user you wish to grant translating rights to this group