Django template can't see CSS files

前端 未结 5 653
北恋
北恋 2021-01-30 09:25

I\'m building a django app and I can\'t get the templates to see the CSS files... My settings.py file looks like:

MEDIA_ROOT = os.path.join(os.path.abspath(os.p         


        
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 10:13

    I had a similar problem when I was trying to get jQuery to work. My fix was to add an alias to my Apache httpd.conf file that pointed to the folder containing the .js. You could do the same with your CSS folder.

提交回复
热议问题