Wednesday, May 13, 2020

Re: Can I use a JS Framework to display small JS tasks in a Django project?

Its not clear why you need JS at all. The app can load content from directories on the server side (back-end) and write these to a DB.  Django could then load these from the DB and show in the normal way.  Page generation can be done via normal views (Django/Python code).

(PS Both react and angular are not "new" - each are over 6 years old; more than 2 generations of computer science students...)


On Tuesday, 12 May 2020 16:04:55 UTC+2, Alexander Rogowski wrote:

I have an idea to simplify the online experiments from our university. But I'm not so familiar with the newest FE frameworks eg. react, angular, vue. Any answer on this post is appreciated :)

The idea is, to put our experiments in two folders, "tasks" and "treatments". A task could be something trivial like put some sliders on the right position or write with a chatbot (this should be coded in js, I guess?) and in treatments could be something like collecting badges or the setting for the chatbot (e.g. human-like/machine-like).

My question is: Can I use a JS Framework to load the content from the two directories and show them as options on a main page? After selecting the task and the treatments, it would generate a page with the selected items, e.g. the chatbot with the human-like setting.

I Would like to do this with Django (because I already worked with it) so we can create unique links to send them to the probands. Is Django with a JS Framework the right decision? How would you approach the problem?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d673c088-20f0-40a7-916e-346979e55a71%40googlegroups.com.

No comments:

Post a Comment