django-mdeditor icon indicating copy to clipboard operation
django-mdeditor copied to clipboard

How can I run your code with DEBUG=False

Open ch0ks opened this issue 3 years ago • 3 comments

Hi!, Thanks a lot for putting together this code, it's great. Unfortunately, I cannot deploy my application in a production environment with the DEBUG flag as True in the settings. How can I use your code without having to set the debug flag to True, it's just a security issue that is not tolerated in my company on applications, running in production.

When I set the DEBUG variable in the settings file to False I get the following error:

Exception: Missing staticfiles manifest entry for 'mdeditor/js/lib'

I have tried many options but it seems this is beyond my capabilities. Please help. Thanks.

ch0ks avatar Jul 18 '22 22:07 ch0ks

You can try this one -- django-simplemde. It went well in production.

welel avatar Nov 13 '22 19:11 welel

With release v0.1.20 i found that inside templates/markdown.html the line which try to load static :

path: "{% static 'mdeditor/js/lib' %}" + "/",

Is not supported with strict static loading, so as workaround i copy the templates/markdown.html inside my Django project template and replace the line by :

path: "{% static 'mdeditor/js/lib/' %}",

After restart of Django it works like a charm. Is it possible to check that issue and correct it in next release ?

Thanks,

fpoisson35 avatar Dec 21 '23 14:12 fpoisson35

这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

pylixm avatar Dec 21 '23 14:12 pylixm