A Django translation server
Project description
=====
Django translation server
=====
Django translation server is a simple Django app to manage the project translations.
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::
from translation_server import views as translation_server_views
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-translation-server-0.3.1.tar.gz.
File metadata
- Download URL: django-translation-server-0.3.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
403bbe3d5a9ef9fd4787e77fa098e7dd8e1ad183167f75232a2283ac253b2494
|
|
| MD5 |
6e7d1001e242711fcc5a039e89b37a3d
|
|
| BLAKE2b-256 |
fa4182e39b2c1fcff655b73922b308dc3357ac9ea4067c9625aaa7fa402bfc8e
|