Skip to main content

A Django translation server

Project description

Django translation server

Django translation server is a simple Django app to manage the project translations.

Obs: currently this projects only works with PostgreSQL database. Support for others databases will be added in future releases

Supported databases
- [x] PostgreSQL
- [ ] MySQL
- [ ] Sqlite


Django REST framework -
django-modeltranslation -
PostgreSQL database -
psycopg2 -

Quick start

1. Add "translation_server" to your INSTALLED_APPS setting like this::


2. Include the Translation Server URLconf in your project like this::

from django.conf.urls import url, include
from rest_framework import routers
from translation_server import views as translation_server_views

router = routers.DefaultRouter()
router.register(r'translation', translation_server_views.TranslationViewSet, 'translations')
router.register(r'translation_type', translation_server_views.TranslationTypeViewSet, 'translations_types')

urlpatterns = [
url(r'^api/', include(router.urls, namespace='api'), ),
url(r'^api/last_translation_tag/(?P<tag>\w+)[/]?$', translation_server_views.LastTranslationTagView.as_view(), name='get_last_translation_tag'),

3. Run ```python makemigraions``` and ```python migrate``` to create the Translation models, and load the initial data.

4. Run ```python collectstatic``` to collect the necessary static files.

5. Start the development server and visit to create a translation (you'll need the Admin app enabled).

6. Visit to view all translations

7. Run `python translate` to apply the basic translations for en-US and pt-BR

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-translation-server, version
Filename, size File type Python version Upload date Hashes
Filename, size django-translation-server- (15.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page