【问题标题】:django-ckeditor ignores static storage settingsdjango-ckeditor 忽略静态存储设置
【发布时间】:2016-10-29 00:04:22
【问题描述】:

我在管理员和 django-storages 中使用 django-ckeditor 和 Azure 存储来存储静态和媒体文件。

admin 中的所有静态文件都是从 Azure 存储加载的,但 CKEditor 的文件不是:

<script type="text/javascript" src="https://somehost.blob.core.windows.net/blob/admin/js/core.js"></script>
...
<script type="text/javascript" src="/static/ckeditor/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/static/ckeditor/ckeditor-init.js"></script>

为什么以及如何解决它?

【问题讨论】:

    标签: django azure ckeditor django-storage django-ckeditor


    【解决方案1】:

    好的,根据this link,我需要将MEDIA_URL和STATIC_URL设置为我的Azure存储主机。

    【讨论】:

      猜你喜欢
      • 2012-11-28
      • 2014-06-30
      • 2016-04-22
      • 1970-01-01
      • 1970-01-01
      • 2018-07-07
      • 2010-12-11
      • 2013-07-19
      • 2020-01-28
      相关资源
      最近更新 更多