Django not recognizing the MEDIA_URL path?

前端 未结 8 1857
鱼传尺愫
鱼传尺愫 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:57

    I had a similar problem, I have a one-page-app and Apparently I had a newbie mistake that made django miss my media path i had this:

    url(r'^', home, name="home"),
    

    instead of this:

    url(r'^$', home, name="home"),
    

    the missing $ made my url pattern miss my media url

提交回复
热议问题