django-mp-trans-1.1
توضیحات
Django trans apps
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-mp-trans-1.1 |
| نام | django-mp-trans |
| نسخه کتابخانه | 1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Paul Maigutyak |
| ایمیل نویسنده | pmaigutyak@gmail.com |
| آدرس صفحه اصلی | https://github.com/pmaigutyak/mp-trans |
| آدرس اینترنتی | https://pypi.org/project/django-mp-trans/ |
| مجوز | MIT |
# 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 `settings.py`
2. Set `IS_ADMIN_FIELDS_TRANSLATION_ENABLED` option to `True` in your `settings.py`
3. Add `url(r'^trans/', include('trans.urls')),` to your `urls.py`
## Admin usage
1. Import `TranslationAdmin` class.
```
from trans.admin import `TranslationAdmin`
```
2. Extend your admin class with `TranslationAdmin`
```
class MyModelAdmin(TranslationAdmin):
pass
```
نحوه نصب
نصب پکیج whl django-mp-trans-1.1:
pip install django-mp-trans-1.1.whl
نصب پکیج tar.gz django-mp-trans-1.1:
pip install django-mp-trans-1.1.tar.gz