3D models in django

Hi guys i am building a website using django and 3.js, i am facing some difficulties to load a 3d model in the website. Please guide me how to give the path.


Failed to load resource: the server responded with a status of 404 (Not Found)
when i click this link it show page not found


{% load static %}

3D Model


let scene, camera, renderer, hlight;

function init(){
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.01, 1000);
hlight = new THREE.AmbientLight (0x404040, 100);

renderer = new THREE.WebGLRenderer({antialias: true});
renderer.setSize(window.innerWidth, window.innerHeight);


var loader = new THREE.GLTFLoader();
loader.load('home/INO.glb', function(gltf){
undefined, function ( error ) {

console.error( error );



Is this a static file that resides on the server? If so, you’ll want to read about Handling Static Files

Is this a file being uploaded by a user? In that case, you’ll want to read about File Uploads.

Or is this data being generated by a Django View? That would be handled by the URL Dispatcher.

Hi, you already solve the problem?
I have the same issue i dont know hoy to load de files models.
This is the error
“scripts.js:46 Uncaught TypeError: Cannot read property ‘appendChild’ of null
at init (scripts.js:46)
at scripts.js:63”