Angularjs routing with django's urls

前端 未结 2 1518
栀梦
栀梦 2021-02-09 01:32

I am using AngularJS for my front-end and Django as a back-end.

I am doing very simple things at the back-end so I have not considered using tastypie.

The proble

2条回答
  •  有刺的猬
    2021-02-09 01:55

    Instead of writing

      

    You should write:

    {% endraw %}
          
    {% endraw %}

    the {% endraw %} is used to tell the templating engine (if it is jinja2) not to consider what is between those blocks

    And I think that angular directive are supposed to be in an html tag and not like

提交回复
热议问题