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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file django-model-viewer-1.1.3.tar.gz.

File metadata

  • Download URL: django-model-viewer-1.1.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.10

File hashes

Hashes for django-model-viewer-1.1.3.tar.gz
Algorithm Hash digest
SHA256 57ff2370f49e60b5aaaae91bc6f645b9cfeb19ae9eb3e8d622cc354f50e06ec7
MD5 9ae4d9b6a675e15ddc1ca625b0d2354e
BLAKE2b-256 cc089e42e7ddadd8de129e305b17510ddee62097397b2514fad040aa2fcc2d5d

See more details on using hashes here.

File details

Details for the file django_model_viewer-1.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_model_viewer-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 099b68682889e69fa0044088af31d11813be1940dfd7701e27ac46dc621cc63a
MD5 bf210410417fa4883b8f246c639231de
BLAKE2b-256 2d6d42485435e70c08487aed4325d97a6ef46d5143a81dd909df1e8c554fa994

See more details on using hashes here.

Supported by

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