معرفی شرکت ها


django-integrations-0.1.4


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Tools for creating and managing multi-site integrations like API Keys and Tokens
ویژگی مقدار
سیستم عامل -
نام فایل django-integrations-0.1.4
نام django-integrations
نسخه کتابخانه 0.1.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Grant Viklund, Roberto Himmelbauer
ایمیل نویسنده renderbox@gmail.com
آدرس صفحه اصلی https://github.com/renderbox/django-integrations/
آدرس اینترنتی https://pypi.org/project/django-integrations/
مجوز MIT license
.. image:: https://github.com/renderbox/django-integrations/workflows/Django%20Integrations%20CI/badge.svg :target: https://github.com/renderbox/django-integrations/workflows/Django%20Integrations%20CI/badge.svg :alt: Django Integrations CI .. image:: https://github.com/renderbox/django-integrations/workflows/Django%20Integrations%20Develop/badge.svg :target: https://github.com/renderbox/django-integrations/workflows/Django%20Integrations%20Develop/badge.svg :alt: Django Integrations CI Django Integrations =================== Tools for creating and managing multi-site integrations like API Keys and Tokens Prerequisites ------------- This pakcage makes use of Encrypted Fields that come form the `django-fernet-fields <https://github.com/orcasgit/django-fernet-fields>`_ packages. Make sure to checkout their documentation for any questions related to Field Encryption. This package makes use of JSON fields so you'll need Download and install Postgresql. This will change with Django 3.1+ and the universal JSON field. Installation ------------ .. code-block:: > pip install django-integration For Developers -------------- Make sure you run the following command to ensure you have all the requirements needed to us the develop example project: .. code-block:: pip install -e .[dev] Then run the migration command inside the develop folder .. code-block:: ./manage.py migrate finally create a super user: .. code-block:: ./manage.py createsuperuser Example ^^^^^^^ In the develop django project you will find a core application that has three Forms each with its view to show case how to use the Credential Model in the integration package. For example you have a ZoomForm to present the user with the fields Zoom gives to use their API with you project. The ZoomForm is responsible for presenting and validating the fields and linking it to the credentials Model just like a normal ModelForm would. .. code-block:: class ZoomForm(forms.ModelForm): class Meta: model = Credential fields = ['public_key', 'private_key'] labels = { 'public_key': "Zoom Key", 'private_key': "Zoom Secret" } def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['public_key'].required = True self.fields['private_key'].required = True It is in the view where it creates a Credential Model instance form the form submitted and saved. If you need to add additional fields or logic you can do it here, for example settting the site field in the Credential Model. .. code-block:: class ZoomFormView(FormView): template_name = "core/form.html" form_class = ZoomForm success_url = reverse_lazy('integration-list') def form_valid(self, form): zoom = form.save(commit=False) zoom.name = 'Zoom Integration' zoom.site = Site.objects.get_current() zoom.save() return super().form_valid(form)


نیازمندی

مقدار نام
<4.0,>=3.0 Django
- django-fernet-fields
- setuptools
- wheel
- twine
- m2r
- dj-database-url
- django-crispy-forms
- django-allauth
- django-extensions
- psycopg2-binary
- recommonmark
- m2r
- django-extensions
- coverage
- Sphinx
- rstcheck
- sphinx-rtd-theme


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl django-integrations-0.1.4:

    pip install django-integrations-0.1.4.whl


نصب پکیج tar.gz django-integrations-0.1.4:

    pip install django-integrations-0.1.4.tar.gz