日期:2014-05-17  浏览次数:20682 次

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,问题解决!