Django reverse() for JavaScript

前端 未结 9 1108
情深已故
情深已故 2020-12-24 07:24

In my project I have a lot of Ajax methods, with external client-side scripts (I don\'t want to include JavaScript into templates!) and changing URLs is kind of pain for me

9条回答
  •  被撕碎了的回忆
    2020-12-24 07:47

    https://github.com/mlouro/django-js-utils

    dutils is a small utility library that aims to provide JavaScript/Django developers with a few utilities that will help the development of RIA on top of a Django Backend.

    It currently supports the following features:

    • Reverse method for generating Django urls...

提交回复
热议问题