Passing an id in Django url

前端 未结 2 379
猫巷女王i
猫巷女王i 2021-01-11 14:06

I want to pass userid from django url to my view

Here is what I have written in Django template



        
2条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 14:28

    Be carefull, after Django 1.5, use must use quotes. I came across this solution and tried it, got an error. I'm using Django 1.6 and you need the quotes:

    
        Know More
    
    

    hope it helps.

提交回复
热议问题