Django admin has no style

后端 未结 2 901
孤城傲影
孤城傲影 2020-12-16 23:25

I have just moved my django site on my staging server, and the admin side of the site has no styling with it, when previously in local development it was fine, I read somewh

2条回答
  •  庸人自扰
    2020-12-16 23:48

    I think you've created the symlink the wrong way round - your command has created a htdocs symlink in ..../contrib/admin/

    What you need is something like

    sudo ln -s /usr/lib/python2.5/site-packages/django/contrib/admin/ /var/www/sico/htdocs/X
    

    Where X is whatever you need to get to your ADMIN_MEDIA_PREFIX. I think the default would be admin/media

    Hope that helps

提交回复
热议问题