how to add anchor to django url in template

后端 未结 2 1769
遇见更好的自我
遇见更好的自我 2020-12-31 04:16

I am trying to add an anchor to my url in a django template like this:

My link         


        
2条回答
  •  北海茫月
    2020-12-31 04:40

    Make sure the actual anchor is defined like this in your template:

    
    

    And then link to it the way you did:

    My link
    

    If this does not work add / just before your #-tag:

    My link
    

提交回复
热议问题