I cannot find models.py, pages.py and tests.py

63 views
Skip to first unread message

Hyundam Je

unread,
Feb 25, 2021, 12:29:47 AM2/25/21
to oTree help & discussion
I am a beginner and taking an online course on Youtube about Pycharm. The question is after I type "otree startapp surveyapp", there are no models.py, pages.py and tests.py. It is really weird because I can see them on the lecture's screen. 

I really appreciate your help. Thanks.

Chris @ oTree

unread,
Feb 25, 2021, 12:42:41 AM2/25/21
to Hyundam Je, oTree help & discussion
That is because the new version of otree uses a simplified format. All the code is in __init__.py. Hopefully that tutorial will eventually teach about this new format as well.

Sent from my phone

On Feb 25, 2021, at 1:29 PM, Hyundam Je <jeh...@gmail.com> wrote:

I am a beginner and taking an online course on Youtube about Pycharm. The question is after I type "otree startapp surveyapp", there are no models.py, pages.py and tests.py. It is really weird because I can see them on the lecture's screen. 

I really appreciate your help. Thanks.

--
You received this message because you are subscribed to the Google Groups "oTree help & discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otree+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/otree/2cea53b2-054d-4f46-96e2-080c0026af9cn%40googlegroups.com.

Chris @ oTree

unread,
Feb 25, 2021, 12:51:30 AM2/25/21
to Hyundam Je, oTree help & discussion
More info here: https://otree.readthedocs.io/en/master/misc/noself.html

Sent from my phone

On Feb 25, 2021, at 1:42 PM, Chris @ oTree <ch...@otree.org> wrote:

That is because the new version of otree uses a simplified format. All the code is in __init__.py. Hopefully that tutorial will eventually teach about this new format as well.

Hyundam Je

unread,
Feb 25, 2021, 12:56:35 AM2/25/21
to oTree help & discussion
Thank you SO MUCH!!! 
Reply all
Reply to author
Forward
0 new messages