Skip to content Skip to sidebar Skip to footer

What Is The Function In Django That Calls Base.html And How Can I See Python Code Inside Base.html Execute At Runtime

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 the cl

Solution 1:

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.


Post a Comment for "What Is The Function In Django That Calls Base.html And How Can I See Python Code Inside Base.html Execute At Runtime"