Django CK-Editor not working in production shared hosting

My Django application has a django-ckeditor which seemed to work fine in the local host but dosent work in the production enviornment .

I have used proper static path settings cause all of my other static files are loading properly . but the ck-editor is not working fine .

This is my file .

STATIC_URL = '/static/'

# Add these new lines

STATIC_ROOT = "/home/username/public_html/static/"

MEDIA_URL = '/media/'
MEDIA_ROOT = "/home/username/public_html/media/"

CKEDITOR_BASEPATH = "/home/username/public_html/static/ckeditor/ckeditor/"

This is my file

import os

from django.core.wsgi import get_wsgi_application
from whitenoise import WhiteNoise
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hrnindia.settings')

application = get_wsgi_application()
application = WhiteNoise(application, root="/home/username/public_html/static/")
application.add_files("/home/username/public_html/static/ckeditor/ckeditor/", prefix="more-ck-files/")
application.add_files("/home/username/public_html/static/ckeditor/", prefix="more-files/")

I have tried out all the other solutions like configuring the path and using whitenoise . But nothing seems to make the ck-editor work .

Back to Top