
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Create models definitions document from your django project. This project help the documentation related to Django models.
|travis| |coveralls| |version| |license| |requires|
::
INSTALLED_APPS = ( ... 'modelsdoc', )
the results <https://github.com/tell-k/django-modelsdoc/blob/master/tests/sample_models.rst>
_ of executing the command to tests/models.py <https://github.com/tell-k/django-modelsdoc/blob/master/tests/models.py>
_.You can pass specify app name. Listing only the specified app.
::
$ python manage.py listing_models --app polls
It writes the results to the specified file.
::
$ python manage.py listing_models --output sample.rst
You can choice output format. rst (reStructuredText) or md (Markdown). Default format is rst.
::
$ python manage.py listing_models --format md
You can specify the apps and change the order.
::
MODELSDOC_APPS = (polls,)
You can specify the field value and change the order.
::
MODELSDOC_DISPLAY_FIELDS = ( ('Fullname', 'verbose_name'), ('Name', 'name'), ('Type', 'db_type'), ('PK', 'primary_key'), ('Unique', 'unique'), ('Index', 'db_index'), ('Null/Blank', 'null_blank'), ('Comment', 'comment'), )
::
MODELSDOC_MODEL_OPTIONS = ( 'unique_together', 'index_together', 'ordering', 'permissions', 'get_latest_by', 'order_with_respect_to', 'db_tablespace', 'abstract', 'swappable', 'select_on_save', 'default_permissions', 'default_related_name' )
::
MODELSDOC_OUTPUT_TEMPLATE = 'modelsdoc/models' MODELSDOC_OUTPUT_FORMAT = 'rst' # default format MODELSDOC_MODEL_WRAPPER = 'modelsdoc.wrappers.ModelWrapper' MODELSDOC_FIELD_WRAPPER = 'modelsdoc.wrappers.FieldWrapper' MODELSDOC_INCLUDE_AUTO_CREATED = True
.. csv-table:: :widths: 10, 10, 10, 10, 10, 10, 10, 10, 10
" ", "Django.1.5", "Django1.6", "Django1.7", "Django1.8", "Django1.9", "Django1.10", "Django1.11", "Django2.0" "Python 2.7","◯","◯","◯","◯","◯","◯","◯","" "PyPy","◯","◯","◯","◯","◯","◯","◯","" "Python 3.3","","","◯","◯","","","","" "Python 3.4","","","◯","◯","◯","◯","◯","◯" "Python 3.5","","","","◯","◯","◯","◯","◯" "Python 3.6","","","","◯","◯","◯","◯","◯"
MIT Licence. See the LICENSE file for specific terms.
Set section length dynamically <https://github.com/tell-k/django-modelsdoc/pull/6>
_. Thanks to wanshot.. |travis| image:: https://travis-ci.org/tell-k/django-modelsdoc.svg?branch=master :target: https://travis-ci.org/tell-k/django-modelsdoc
.. |coveralls| image:: https://coveralls.io/repos/tell-k/django-modelsdoc/badge.png :target: https://coveralls.io/r/tell-k/django-modelsdoc :alt: coveralls.io
.. |requires| image:: https://requires.io/github/tell-k/django-modelsdoc/requirements.svg?branch=master :target: https://requires.io/github/tell-k/django-modelsdoc/requirements/?branch=master :alt: requirements status
.. |version| image:: https://img.shields.io/pypi/v/django-modelsdoc.svg :target: http://pypi.python.org/pypi/django-modelsdoc/ :alt: latest version
.. |license| image:: https://img.shields.io/pypi/l/django-modelsdoc.svg :target: http://pypi.python.org/pypi/django-modelsdoc/ :alt: license
FAQs
Create models definitions document from your Django project.
We found that django-modelsdoc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.