I have an oTree survey and I am working on an oscar shop. Now I want to 
combine them.

I first start the otree project (locally, otree devserver on port 8000). 
After the questions, I start a subprocess to call another server (py 
manage.py runserver, port 8080) and open another browser tab. 

Based on the answers, I would like to assign the player budget in the shop. 
How can I pass data through the projects?

from survey.models import Player  # otree models

class CatalogueView(TemplateView):
 """
 Browse all products in the catalogue
 """
 model = Player
 context_object_name = "products"



But I just get this error: 


ModuleNotFoundError: No module named 'otree'

I also put otree to INSTALLED_APPS and I tried to import otree.api.

Any ideas, how to handle this?

-- 
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/943608f5-7ebd-46ab-a376-6794966eadb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to