No folder named student found

Hi,
In edX source there are codes that import student module like this:
import student.views
but I could not found any folder with this name?

It should be in common/djangoapps/

1 Like

That’s right.
Thanks.

For some context, the platform used to encourage importing directly from certain Django apps, such as the student app. Due in part to instances of confusion like this one, we’ve deprecated this pattern, and encourage importing from the full path now (from common.djangoapps.student.views import …)

3 Likes

Circling back to my previous post – turns out I am partly wrong. For openedx/, cms/, and lms/ djangoapps, we do encourage importing using the full path now, but for common/ djangoapps, the only option is to import them directly, as there is no __init__.py in common/djangoapps. Weird.