小编Abo*_*bol的帖子

ValueError:无法加载清单“staticfiles.json”(版本 1.0)

当我构建一个应用程序时显示此错误并且无法修复它时,我不知道如何处理这个问题,你能帮助我吗?


Internal Server Error: /
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/abolfazl/socialmedia/core/views.py", line 6, in index
    return render(request, 'index.html')
  File "/usr/local/lib/python3.10/dist-packages/django/shortcuts.py", line 19, in render
    content = loader.render_to_string(template_name, context, request, using=using)
  File "/usr/local/lib/python3.10/dist-packages/django/template/loader.py", line 62, in render_to_string
    return template.render(context, request)
  File "/usr/local/lib/python3.10/dist-packages/django/template/backends/django.py", line 61, in render
    return self.template.render(context)
  File "/usr/local/lib/python3.10/dist-packages/django/template/base.py", line 170, in render
    return self._render(context)
  File "/usr/local/lib/python3.10/dist-packages/django/template/base.py", line 162, …
Run Code Online (Sandbox Code Playgroud)

python django django-staticfiles

3
推荐指数
1
解决办法
1474
查看次数

标签 统计

django ×1

django-staticfiles ×1

python ×1