发出命令时出现静态错误 "python manage.py collectstatic"

Static error when giving the command "python manage.py collectstatic"

当我给出命令 "python manage.py collectstatic" 时,出现以下问题

"0 static files copied to '/home/leonard368a/leonard368a.pythonanywhere.com/static', 119 unmodified."

有没有人有办法解决这个问题?

命令行:

STATIC_URL = '/static/'

STATICFILES_DIRS = [
    os.path.join(BASE_DIR, 'static')

]
STATIC_ROOT = "/static/"

Collectstatic命令使用,当你想在服务器上部署你的项目时,命令将本地的所有静态文件复制到服务器这是这个命令的主要用途,它也被使用在本地但主要目的是复制所有文件并放在服务器文件管理器上,

In your case you use the STATICFILEES_DIRS and STATIC_ROOT are same so in local file system copy static dir to static that why you need to change STATIC_ROOT='asset' or STATIC_ROOT = os.path.join(BASE_DIR, 'asset') in your root dir

static file configration in python any where

collect static in python any where

如果有效请告诉我