How to migrate a django app into a tutor plugin

Good day! I have a django app that works well on my native installed openedx. The native installed openedx runs smoothly and is working fine with the django app feature.

Now we installed another openedx but instead of being installed as native, we installed it through tutor.
Everything is quite different. The django apps can’t work on the tutor environment, or if there is a way, I hope someone can explain it in detail.

But so far as I’ve read on the Creating a Tutor plugin — Tutor documentation, it is recommended to implement the new feature as plugins. But how am I suppose to do that? Is there a way to add the html, css, and python files that I’ve used in my djangoapp on the new tutor plugin generated by cookiecutter? If there is, can I have a few details of where to start? That would be very much appreciated.

Is this the same question as How to add new features like django apps in tutor? - #2 by braden ? If so, please don’t post duplicate questions. I’ve answered you on the other thread.

Hello @Engr_James_Lusuegro

If you already have a Django app that works like a Plugin for the platform, it should work if you install it in your Tutor env.

Steps by step

  1. Add your Django app in OPENEDX_EXTRA_PIP_REQUIREMENTS var in the config.yml file in your tutor env (If you don’t know your tutor env, you can use: tutor config printroot).
    Example:
    config.yml
OPENEDX_EXTRA_PIP_REQUIREMENTS:
- my-django-app
  1. Save your configuration
tutor config save
  1. Build your image again
tutor images build openedx
  1. Run your platform
tutor local start

And that’s it.

This process adds your Django app to your containers.

References:

I hope this helps you :blush: :raised_hands: