How to set up Django website with jQuery

后端 未结 4 854
遇见更好的自我
遇见更好的自我 2021-01-30 02:25

I don\'t know why, but I couldn\'t figure out how to activate jQuery on my website. All sites doing tutorials \'Starting jQuery on Django\' started with JQuery already working o

4条回答
  •  有刺的猬
    2021-01-30 03:02

    You can also just pip install django-jquery, and put jquery in INSTALLED_APPS. Of course, you need to run collectstatic as always after. :)

    That way you can just have it in your requirements.txt file if you use one.

提交回复
热议问题