Skip to main content

Django trans apps

Project description

# Translation app
This app helps translate admin fields using `django-modeltranslation` and `googletrans`

## Installation
`$ pip install mp-trans`

## Setup
1. Add `trans` and `modeltranslation` to the `INSTALLED_APPS` variable of your project’s ``
2. Set `IS_ADMIN_FIELDS_TRANSLATION_ENABLED` option to `True` in your ``
3. Add `url(r'^trans/', include('trans.urls')),` to your ``

## Admin usage
1. Import `TranslationAdmin` class.
from trans.admin import `TranslationAdmin`
2. Extend your admin class with `TranslationAdmin`
class MyModelAdmin(TranslationAdmin):

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-mp-trans-1.1.tar.gz (3.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page