小编Muh*_*ğan的帖子

错误:: --system 旨在用于预先存在的 Pipfile 安装,而不是特定软件包的安装。正在中止

我完成了我的 django 项目。并且 \xc4\xb1 想要在 aws 上部署我的项目。我从 github 拉取我的项目,然后在 aws(ubuntu) 上的虚拟计算机上运行 pipelinenv install,我每次都会收到此错误。

\n
ERROR:: --system is intended to be used for pre-existing Pipfile installation, not installation of specific packages. Aborting.\n
Run Code Online (Sandbox Code Playgroud)\n

我该如何解决这个问题

\n

django ubuntu amazon-web-services django-deployment pipenv

10
推荐指数
4
解决办法
9982
查看次数

为什么onclick确认方法(VsCode)中的return语句有下划线?

我想在删除对象之前对屏幕进行确认,但是 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”语句只能在函数体内使用。

html javascript

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