123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- Metadata-Version: 2.1
- Name: django-schema-graph
- Version: 2.2.1
- Summary: An interactive graph of your Django model structure.
- Home-page: https://github.com/meshy/django-schema-graph
- License: MIT
- Author: Charlie Denton
- Author-email: charlie@meshy.co.uk
- Requires-Python: >=3.6
- Classifier: Development Status :: 4 - Beta
- Classifier: Framework :: Django
- Classifier: Framework :: Django :: 1.11
- Classifier: Framework :: Django :: 2.0
- Classifier: Framework :: Django :: 2.1
- Classifier: Framework :: Django :: 2.2
- Classifier: Framework :: Django :: 3.0
- Classifier: Framework :: Django :: 3.1
- Classifier: Framework :: Django :: 3.2
- Classifier: Framework :: Django :: 4.0
- Classifier: Framework :: Django :: 4.1
- Classifier: Intended Audience :: Developers
- Classifier: License :: OSI Approved :: MIT License
- Classifier: Natural Language :: English
- Classifier: Programming Language :: Python
- Classifier: Programming Language :: Python :: 3
- Classifier: Programming Language :: Python :: 3.6
- Classifier: Programming Language :: Python :: 3.7
- Classifier: Programming Language :: Python :: 3.8
- Classifier: Programming Language :: Python :: 3.9
- Classifier: Programming Language :: Python :: 3.10
- Classifier: Programming Language :: Python :: 3.11
- Classifier: Programming Language :: Python :: 3
- Classifier: Programming Language :: Python :: 3.10
- Classifier: Programming Language :: Python :: 3.11
- Classifier: Programming Language :: Python :: 3.6
- Classifier: Programming Language :: Python :: 3.7
- Classifier: Programming Language :: Python :: 3.8
- Classifier: Programming Language :: Python :: 3.9
- Classifier: Topic :: Database
- Classifier: Topic :: Documentation
- Classifier: Topic :: Utilities
- Requires-Dist: attrs (>=21.4.0)
- Project-URL: Repository, https://github.com/meshy/django-schema-graph
- Description-Content-Type: text/markdown
- # Django Schema Graph
- Django-schema-graph makes a colourful diagram out of your Django models. The
- diagram is interactive, and makes it easy to toggle models and apps on/off at
- will.
- It looks like this:
- | Feature | Screenshot |
- | --- | --- |
- | Models |  |
- | Apps |  |
- | Both together |  |
- | Graph editor |  |
- (Apologies that the images above don't work on PyPI. [Check it out on
- GitHub](https://github.com/meshy/django-schema-graph/blob/master/README.md).)
- ## Installation
- Install from PyPI:
- ```bash
- pip install django-schema-graph
- ```
- Add to `INSTALLED_APPS`:
- ```python
- INSTALLED_APPS = [
- ...
- 'schema_graph',
- ...
- ]
- ```
- Add to your URLs.
- ```python
- from schema_graph.views import Schema
- urlpatterns += [
- # On Django 2+:
- path("schema/", Schema.as_view()),
- # Or, on Django < 2:
- url(r"^schema/$", Schema.as_view()),
- ]
- ```
- ## Use
- Browse to `/schema/` (assuming that's where you put it in your URLs).
- You can control access to this page using the `SCHEMA_GRAPH_VISIBLE` setting,
- or by subclassing `schema_graph.views.Schema` and overriding `access_permitted`.
- By default the page is only visible when `DEBUG` is `True`,
- because we assume that you don't want to leak sensitive information about your
- website outside of local development.
- ## Support
- Tests run on sensible combinations of:
- - Python (3.6-3.11)
- - Django (1.11-4.1)
- If you're stuck on old version of Python or Django, you may consider installing
- old versions.
- They will probably have fewer features, and there will be no support for them.
- The last version to support Python 2.7 and 3.5 was 1.2.0
- The last version to support Django 1.8 was 1.2.0
- ## Alternatives
- - [`django-spaghetti-and-meatballs`](https://github.com/LegoStormtroopr/django-spaghetti-and-meatballs)
- is great. At the time of writing, it offers a lot more detailed information
- on the models in the diagram, but doesn't allow them to be turned on/off in
- the page.
|