wagtail_3display
Wagtail 3D model viewer block using https://threejs.org/.
Installation
-
Install the package using pip:
pip install wagtail-3display
-
Add
wagtail_3displayto yourINSTALLED_APPSinsettings.py:INSTALLED_APPS = [ ... 'wagtail_3display', ... ]
-
Run migrations to create necessary database tables:
python manage.py migrate wagtail_3display
-
Collect static files:
python manage.py collectstatic
-
Ensure you have the necessary static files in your templates:
<script src="{% static 'wagtail_3display/js/3display.js' %}"></script>
Usage
-
In your Wagtail admin, add a new block of type "ThreeDisplayBlock" to your StreamField.
-
Upload a 3D model file (e.g., .glb, .gltf) using the block's file chooser.
-
Save the page and view it on the frontend to see the 3D model rendered.
Metadata
Release files for wagtail-3display 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wagtail_3display-1.0.5.tar.gz | 173.3 kB | Details |
Release files / wagtail_3display-1.0.5.tar.gz
| Download URL | wagtail_3display-1.0.5.tar.gz |
|---|---|
| Size | 173.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
967437671b877096b52acb850e4c60d7b07c59f3d685328979894801faaf004f
|
|
BLAKE2b-256 checksum How to use checksums |
7ca4ca992da5084ba2a5ee7d7615ee3d08df8874147ad915979ab329f41ec793
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.6
|