Web app django ckeditor deployment

Info 0 Reputation points
2023-09-01T14:10:54.5533333+00:00

I have web app with django. I am deploying through Visual Studio Code - with Azure extension.

All was fine. BUt there was this warning: |WARNING|Missing Django module in /tmp/8dbaaf2aeed7799/requirements.txt | Exit code: 0 | Add Django to your requirements.txt file. But all worked.

I added ckeditor into my web app. Localhost works fine. When I deploy, application do not start with error: No module named 'ckeditor'. This error message indicates that the module 'ckeditor' is missing from the requirements.txt

OK. when I add ckeditor to requirements.txt file (ckeditor==4.18.0 I am not able to deploy the app with error:

ERROR: Could not find a version that satisfies the requirement ckeditor==4.18.0 (from versions: none)

ERROR: No matching distribution found for ckeditor==4.18.0

How to deploy the CK editor module?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2023-09-05T15:18:00.0566667+00:00

    Edit: As Info mentioned in the comments :
    *"I found solutions. The requirements line should be django-ckeditor==6.7.0 not ckeditor=x.x.x "

    (Thanks for sharing the solution with the community)*

    Based on the issue description, I understand you have checked the configuration and the webapp works fine locally.

    Just to highlight, the ModuleNotFoundError typically occurs when the module or package you're trying to import is not found. This can happen for several reasons, such as it not being listed in the requirements.txt file, not being installed in the site-packages directory during deployment, or it relying on a native library (.so files) that is missing in the container environment.

    Validate that packages are actually being installed via the stdout from your terminal (or in VSCode in the Output tab)

    Kindly ensure that you are deploying from the root of your project relative to your requirements.txt and Python entrypoint. If you are deploying from outside your main project folder (such as a parent folder on accident), then Oryx will not know how to build your application and you’ll likely encounter ModuleNotFoundError at runtime.

    Refer this doc for more info: Python on Linux App Service and ModuleNotFoundError

    Kindly let us know, I'll follow-up with you further.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.