معرفی شرکت ها


django-useful-fields-0.0.5


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

Some useful database field definitions for Django.
ویژگی مقدار
سیستم عامل -
نام فایل django-useful-fields-0.0.5
نام django-useful-fields
نسخه کتابخانه 0.0.5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Rob Mecham
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/rmecham/django-useful-fields/
آدرس اینترنتی https://pypi.org/project/django-useful-fields/
مجوز MIT
django-useful-fields ==================== | I found myself copying a few Django database field classes from project to project so I decided to bundle them together | and release them as an open source package instead. Here are the fields that are currently included: - **TimeZoneField** | This field stores a reference to a time zone in the database and automatically instantiates the correct pytz time | zone object on retrieval. Useful for recording a user’s default time zone. - **MarkdownCharField** | This field is meant to be used in collaboration with a regular CharField. The regular CharField stores the Markdown- | formatted source text and this field will store the rendered HTML version of that same text. Use the ``populate_from`` | argument to indicated which field on the same model contains the source text. If the ``allow_html`` argument is | ``False`` (the default), any HTML tags present in the source text will be removed using the | `bleach library <https://github.com/mozilla/bleach>`__. The ``extensions`` argument can be used to enable any desired | `extensions <https://pythonhosted.org/Markdown/extensions/index.html>`__ for the | `Markdown library <https://pythonhosted.org/Markdown/>`__. One extension is enabled by default: | `SmartyPants <https://pythonhosted.org/Markdown/extensions/smarty.html>`__. SmartyPants is configured to use the | correct Unicode characters (e.g. “) rather than HTML entities (e.g. ``&ldquo;``). Since CharFields don’t normally | contain paragraphs of text, MarkdownCharField strips the ``<p></p>`` tags that Markdown always includes. - **MarkdownTextField** | This field is meant to be used in collaboration with a regular TextField. The regular TextField stores the Markdown- | formatted source text and this field will store the rendered HTML version of that same text. Use the ``populate_from`` | argument to indicated which field on the same model contains the source text. If the ``allow_html`` argument is | ``False`` (the default), any HTML tags present in the source text will be removed using the | `bleach library <https://github.com/mozilla/bleach>`__. The ``extensions`` argument can be used to enable any desired | `extensions <https://pythonhosted.org/Markdown/extensions/index.html>`__ for the | `Markdown library <https://pythonhosted.org/Markdown/>`__. One extension is enabled by default: | `SmartyPants <https://pythonhosted.org/Markdown/extensions/smarty.html>`__. SmartyPants is configured to use the | correct Unicode characters (e.g. “) rather than HTML entities (e.g. ``&ldquo;``). - **UUIDPrimaryKeyField** | UUIDs are, in many ways, better primary keys than automatically incrementing integer fields. Unfortunately, the | default Django implementation—\ ``UUIDField``—requires some boilerplate (including importing the ``uuid`` module) before | it can be used as a primary key. UUIDPrimaryKeyField manages the boilerplate for you. Just add :: id = UUIDPrimaryKeyField() to your model and everything will just work.


نیازمندی

مقدار نام
>=3.0 Django
>=1.4 bleach
>=2.6 Markdown
>=2015 pytz


نحوه نصب


نصب پکیج whl django-useful-fields-0.0.5:

    pip install django-useful-fields-0.0.5.whl


نصب پکیج tar.gz django-useful-fields-0.0.5:

    pip install django-useful-fields-0.0.5.tar.gz