Tuesday, August 4, 2015

Re: Passing parameters / attributes to javascript in a template

Have you checked the HTML that is actually rendered by the Django template?

On Tue, Aug 4, 2015 at 10:39 AM, Déborah Leder <debdeb312@gmail.com> wrote:
Hello Larry, thank you for your response.

I didn't run the debugger, but i know that my values are correctly passed in the template (when it it outside of the script tags), because at the end of my template, I have also written the code :
<div>
{% for
current_addr in mymodel.addresses.all
%}
    {{
current_addr.description | safe}}
    Latitude : {{
current_addr.lat }},
   
<br>
    Longitude : {{
current_addr.lon }},
   
<br>
{% endfor %}
</div>


And all the values are correctly displayed.

If you think that I can check something else with the debbuger, I don't know what you mean so it would help me if you were more precise

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/23f8bdd5-86b6-40d3-9cb6-964a8d808a6c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei0mBfoz92AAj4ZjTJ9beySyysO4pRcy-xT1UDU%2BtGqQ-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment