Skip to main content

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

  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.

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

wagtail_3display-1.0.3.tar.gz (174.2 kB view details)

Uploaded Source

File details

Details for the file wagtail_3display-1.0.3.tar.gz.

File metadata

  • Download URL: wagtail_3display-1.0.3.tar.gz
  • Upload date:
  • Size: 174.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.6

File hashes

Hashes for wagtail_3display-1.0.3.tar.gz
Algorithm Hash digest
SHA256 87bc5f8f96afc4da93d73c7b1fcecfa7b2492fe22dacaba51fc7164883ee5e16
MD5 bbc8e5a09dd9da82923fe92779eb1bed
BLAKE2b-256 33622a8fcdf27d948667fa8592a2af1dc2c5bdd13041d6af02abb361b1303d80

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