Python中文
首页
教程
问答
标签
搜索
登录
注册
Django python:无法打开文件'manage.py':[Errno 2]没有这样的文件或目录
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我在项目的外部目录中。当我尝试<code>python manage.py runserver</code>时,它可以工作,但是如果我尝试部署代码并执行<code>heroku run python manage.py migrate</code>,它将显示以下错误-</p> <pre><code>(cenv) C:\Users\Machine\cenv\myproject>heroku run python manage.py migrate Running `python manage.py migrate` attached to terminal... up, run.6848 python: can't open file 'manage.py': [Errno 2] No such file or directory </code></pre> <p>但是当我输入<code>DIR</code>时,它显示<code>manage.py</code>在同一个目录中。</p> <pre><code> <DIR> . <DIR> .. 59 .gitignore <DIR> 2015 <DIR> feature 254 manage.py <DIR> media <DIR> myproject 43 Procfile 355 requirements.txt 12 runtime.txt 723 bytes 12,963,143,680 bytes free (cenv) C:\Users\Machine\cenv\myproject>heroku run ls -al Running `ls` attached to terminal... failed ! App not found (cenv) C:\Users\Machine\cenv\myproject>heroku run pwd Running `pwd` attached to terminal... up, run.3539 /app </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>两年后,但对于任何从谷歌来到这里的人来说,我只是遇到了同样的问题并解决了它。 当heroku返回“.”作为目录中的唯一文件时,意味着您没有更新git存储库。</p> <pre><code>git push heroku master </code></pre> <p>希望这有帮助</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何将python输出重定向到python控制台和Windows中的文本文件
6 回答
如何将Python运行时嵌入运行在Windows上的R包中
2 回答
如何将python进程作为另一个Windows us运行
9 回答
如何将Python进程的输出用Python管道传输?
8 回答
如何将Python进程的输出重定向到Rust进程?
1 回答
如何将python连接到Azure云并创建Azure数据工厂
4 回答
如何将Python连接到Db2
2 回答
如何将python连接到IBMDB2?
7 回答
如何将Python连接到microsoftaccess数据库文件?
7 回答
如何将python连接到MySQL服务器
6 回答
如何将Python连接到Node.js?
6 回答
如何将python连接到Oracle Application Express
3 回答
如何将Python连接到PostgreSQL
1 回答
如何将Python连接到Postgres服务器?
7 回答
如何将Python连接到SAS Enterprise Guide(EG)服务器
1 回答
如何将Python连接到Spark会话并保持RDDs的Ali
3 回答
如何将python连接到sqlite3并在上填充多行
8 回答
如何将python连接到使用docker运行的cassandra
10 回答
如何将python退格应用于字符串
1 回答
如何将python逻辑应用到tkinter GUI中?这是一个简单的GET请求程序
10 回答