Sunday, May 29, 2016

Re: Drawing simple objects in Django using canvas


On May 29, 2016 4:23 PM, "Nemanja Milosavljevic" <nemanjam2008@gmail.com> wrote:
>
>
>
> down votefavorite
>
> I am trying to draw simple objects on HTML canvas with Django as my backend. Objects are simple geometrical shapes. I find a Fabric.js java script but it is complicated and I am trying to find something easier. Can someone help me with what I can use?
>

Django would not be directly responsible for drawing the canvas. That's handled by Javascript (AFAIK, I've never specifically researched how HTML canvas apps work).

Django can provide the access to data structures and persistent storage (DB) needed for use within your JS framework. I suppose you could have Django generate the JS file(s) needed and populate then with the Django context, but that is not a common strategy. Normally data acquisition is handled by static JS files that would call back to a Django instance via AJAX for the required data.

-James

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUPaR%2ByX_G5LzHNgiChMuy29jfDgcyQFTgGJiRD6aVSyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment