想在DigitalOcean上托管我的Saleor Web应用程序,并在整个安装过程完成并设置好所有内容后,当我想静静地工作时,出现此错误:
FileNotFoundError:[错误2]没有这样的文件或目录: '/ home / saleordeploy / saleor_project / saleorecommerce / saleor / static / assets'
__________________________________________________________________________
这是我的设置。py
STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
STATIC_URL = os.environ.get('STATIC_URL', '/static/')
STATICFILES_DIRS = [
('assets', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'assets')),
('favicons', os.path.join(PROJECT_ROOT, 'saleor', 'static','favicons')),
('images', os.path.join(PROJECT_ROOT, 'saleor', 'static', 'images')),
('dashboard/images', os.path.join(
PROJECT_ROOT, 'saleor', 'static', 'dashboard', 'images'))]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder']
这是默认的Saleor settings.py,包含所有静态变量。 有谁知道如何解决这一问题? 谢谢