Ok Thank You

вторник, 13 февраля 2018 г., 19:36:27 UTC+1 пользователь M Hashmi написал:
>
> JSON is parsing in and out information from JS to Python or Django in your 
> case directly. For instance let's suppose you have a JS script in your 
> template and you need to pass your context variables into JS code as 
> variables. You can jsonify your request/response to get or post data. 
>
> A good example would be charts, lets suppose you need to show the number 
> of student per class in any project and you want to visually project the 
> quantity. In that case you need to parse your Student model to JS charting 
> scripts. That is where you create JSON request/response objects to supply 
> or capture the events.
>
> Please check this out an try the following link for practice:
>
> https://www.youtube.com/watch?v=B4Vmm3yZPgc
>
> Regards,
>
> Mudassar
>
>
>
> On Tue, Feb 13, 2018 at 7:08 AM, Hayk Manukyan <hayk...@gmail.com 
> <javascript:>> wrote:
>
>> Maybe my question is stupid but I want understand where and why developer 
>> need use json.
>> project <http://hman.pythonanywhere.com/mall/products/none/none/1> on github 
>> <https://github.com/haykhman/openproject/tree/master> 
>> <http://hamn.pythonanywhere.com>this is my project. In templates used 
>> django tags.
>> Have to need project changes for example from ({% for product in products 
>> %}<some HTML>{{ product }}<some HTML>{% endfor %}) to json?
>> Thank you for your time
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/5402f8e4-0d15-4fe8-a1d6-6f54a0bab451%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/5402f8e4-0d15-4fe8-a1d6-6f54a0bab451%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/deea7478-06c2-40bf-8cfe-738c84611d80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to