How can I get a favicon to show up in my django app?

后端 未结 13 1529
盖世英雄少女心
盖世英雄少女心 2020-12-02 06:50

I just want to drop the favicon.ico in my staticfiles directory and then have it show up in my app.

How can I accomplish this?

I ha

相关标签:
13条回答
  • 2020-12-02 07:51

    if you have permission then

    Alias /favicon.ico /var/www/aktel/workspace1/PyBot/PyBot/static/favicon.ico
    

    add alias to your virtual host. (in apache config file ) similarly for robots.txt

    Alias /robots.txt /var/www/---your path ---/PyBot/robots.txt
    
    0 讨论(0)
提交回复
热议问题