Xblock with django

Hi @ritay. Welcome to the Open edX community!

Yes, you can use the Django framework in your XBlock development, including views.py and urls.py.

In the past, we discouraged this since we wanted to optionality to have XBlocks run in non-Django environments. However, since then, we rescinded that decision and are now open to developers assuming the XBlock is running within Django.

1 Like