Skip to main content

A Django translation server

Project description


=====
Django translation server
=====

Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.

Detailed documentation is in the "docs" directory.

Requirements
-----------

Django REST framework - http://www.django-rest-framework.org/
django-filter
django-modeltranslation - http://django-modeltranslation.readthedocs.io/en/latest/installation.html#using-pip

Quick start
-----------

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

INSTALLED_APPS = [
...
'translation_server',
]

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

router = routers.DefaultRouter()
router.register(r'translation', translation_server.views.TranslationViewSet)
router.register(r'translation_type', translation_server.views.TranslationTypeViewSet)

url(r'^api/last_translation_tag/(?P<tag>\w+)[/]?$', translation_server.views.LastTranslationTagView.as_view(), name='get_last_translation_tag'),


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

4. Start the development server and visit http://127.0.0.1:8000/admin/ to create a translation (you'll need the Admin app enabled).

5. Visit http://127.0.0.1:8000/api/translation/ to view all translations

6. Run `python manage.py 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.

Source Distribution

django-translation-server-0.3.tar.gz (11.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page