Skip to content
Advertisement

Django: create endpoint for a file

I have a mesh.obj file and I would like to create an endpoint for it. For example, the endpoint could be of the form ‘path/to/mesh’. How would I do this?

Advertisement

Answer

In your urls.py:

JavaScript

In your views.py:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement