当前位置: 代码迷 >> HTML/CSS >> django manage admin css和javascript失效有关问题
  详细解决方案

django manage admin css和javascript失效有关问题

热度:1300   发布时间:2013-03-13 10:56:58.0
django manage admin css和javascript失效问题

1.打开settings.py,查看:

STATIC_PATH=APP_PATH+'/staticmedia'
STATIC_ROOT = STATIC_PATH
STATIC_URL = '/pagemedia/'


 

2.查看ADMIN_MEDIA_PREFIX

ADMIN_MEDIA_PREFIX = '/media/'


 

3.修改ADMIN_MEDIA_PREFIX

ADMIN_MEDIA_PREFIX = '/pagemedia/admin'

ok,问题解决!

  相关解决方案