Javascript with Django?

前端 未结 8 1267
日久生厌
日久生厌 2021-02-06 19:20

I know this has been asked before, but I\'m having a hard time setting up JS on my Django web app, even though I\'m reading the documentation.

I\'m running the Django de

8条回答
  •  情书的邮戳
    2021-02-06 19:39

    I just remove the '^', "r'static/" instead of "r'^static/". It's works for me ,good luck.

    url(r'static/(?P.*)$', 'django.views.static.serve',
         { 'document_root': the_path }),
    

提交回复
热议问题