我完成了我的 django 项目。并且 \xc4\xb1 想要在 aws 上部署我的项目。我从 github 拉取我的项目,然后在 aws(ubuntu) 上的虚拟计算机上运行 pipelinenv install,我每次都会收到此错误。
\nERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting.\nRun Code Online (Sandbox Code Playgroud)\n我该如何解决这个问题
\n我想在删除对象之前对屏幕进行确认,但是 return 语句总是带有下划线。我该如何解决这个问题?
{% if notifications %}
{% for not in notifications %}
<li>
<figure><img src="{{not.object.image.url}}" alt=""></figure>
<small>{{not.object.category.name}}</small>
<h4>{{not.object.title}}</h4>
<p>{{not.message}}</p>
<!-- <p><a href="#0" class="btn_1 gray"><i class="fa fa-fw fa-eye"></i> View course</a></p> -->
<ul class="buttons">
<li><a onclick="return confirm('Are you sure?');" href="{% url 'deleteNotificationsAdmin' not.pk %}" class="btn_1 gray delete wishlist_close" >
<i class="fa fa-fw fa-times-circle-o"></i> Delete</a></li>
</ul>
</li>
{% endfor %}
{% endif %}
Run Code Online (Sandbox Code Playgroud)
当我用鼠标悬停在它上面时,会出现错误
“return”语句只能在函数体内使用。