Django not recognizing the MEDIA_URL path?

前端 未结 8 2012
鱼传尺愫
鱼传尺愫 2021-02-03 13:23

So I\'m trying to get TinyMCE up and running on a simple view function, but the path to the tiny_mce.js file gets screwed up. The file is located at /Users/home/Django/tinyMCE/m

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-03 13:48

    Do you have the media context processor in your settings?

    TEMPLATE_CONTEXT_PROCESSORS = (
        'django.core.context_processors.media',
    )
    

    You might also try putting the following in your settings to see if the debug messages reveal anything:

    TEMPLATE_DEBUG = True
    

提交回复
热议问题