Skip to main content

A useful tool for viewing Django models, their relationships and functions.

Project description

django-model-viewer

An application that facilitates identification and operation on models.

It searches for all available models in the project and allows you to select and view details about them by holding the mouse on the parameter of interest.

After selecting the path between models through relations, after clicking CREATE we will get a path that allows you to get to the last model.

It is also possible to select a model and click on its name and it will take you to Visual Studio Code to the file and line of the given model.

Installation

  pip install django-model-viewer

Open your project settings and add:

INSTALLED_APPS = [
    ***
    'django_model_viewer',
    ***
]

Add path to main urls file

urlpatterns = [
    path('models-view/', include('django_model_viewer.urls')),
    ***
]

Run server and use at '/models-view' url

Authors

  • self

Project details


Download files

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

Source Distribution

django-model-viewer-1.1.3.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

django_model_viewer-1.1.3-py3-none-any.whl (23.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page