A tool to display different 3D GLB models in Wagtail CMS
Project description
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.
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
File details
Details for the file wagtail_3display-1.0.2.tar.gz.
File metadata
- Download URL: wagtail_3display-1.0.2.tar.gz
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a44b6bfc7fe833f5f72b32942e37deba07b79faa2b031b9fc51a77244843c5e8
|
|
| MD5 |
9beb847f01fc2b5dc6f72dcbce762ef2
|
|
| BLAKE2b-256 |
0be07e58c558ca15e31beccd56f92559f09d8d7cf3cf203fd8d0030ac9bd82e7
|