What is the function in Django that calls base.html and how can I see python code inside base.html execute at runtime

后端 未结 1 1859
醉话见心
醉话见心 2021-01-29 09:23

I\'m not sure if its 2 questions, but I need to see the values of my python code being executed at runtime. Can anyone tell me how this works? Does the python get executed on th

相关标签:
1条回答
  • 2021-01-29 10:06

    Python code is executed on the server. The generated html is sent to the client. In the code you have posted {url_static} is meant to be replaced with the actual value, but probably doesn't work since django template looks for variables as {{ url_static }}. Notice the double braces.

    Your datepicker isn't working since jquery isn't loaded. You can view source (or inspect element) for your rendered page and confirm if the script src is correct.

    0 讨论(0)
提交回复
热议问题