Skip to main content

wagtail_3display

Wagtail 3D model viewer block using https://threejs.org/.

Installation

  1. Install the package using pip:

    pip install wagtail-3display
    
  2. Add wagtail_3display to your INSTALLED_APPS in settings.py:

     INSTALLED_APPS = [
          ...
          'wagtail_3display',
          ...
     ]
    
  3. Run migrations to create necessary database tables:

    python manage.py migrate wagtail_3display
    
  4. Collect static files:

    python manage.py collectstatic
    
  5. Ensure you have the necessary static files in your templates:

    <script src="{% static 'wagtail_3display/js/3display.js' %}"></script>
    

Usage

  1. In your Wagtail admin, add a new block of type "ThreeDisplayBlock" to your StreamField.

  2. Upload a 3D model file (e.g., .glb, .gltf) using the block's file chooser.

  3. 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)

Source distribution for wagtail-3display 1.0.5
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

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page