Python Django: You're using the staticfiles app without having set the STATIC_ROOT setting

前端 未结 3 1240
盖世英雄少女心
盖世英雄少女心 2021-02-02 07:53

I\'m trying to deploy my Django application to the web, but I get the following error:

You\'re using the staticfiles app without having set the STATIC_ROO

3条回答
  •  孤城傲影
    2021-02-02 08:40

    Set the STATIC_ROOT setting to the directory from which you’d like to serve these files, for example:

    STATIC_ROOT = "/var/www/example.com/static/"

    The settings you are using are for development. Check the Django docs for more information here

提交回复
热议问题