Heroku and Django: No default language could be detected for this app(Heroku和Django:无法检测到此应用程序的默认语言)
                            本文介绍了Heroku和Django:无法检测到此应用程序的默认语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
                        
                        问题描述
我遵循了教程(Link here)下的说明。我甚至将runtime.txt文件包含在正确的Python版本中。我到处都找过了,但似乎没有解决办法。我的GitHub项目参考链接:
https://github.com/MithilRocks/chakri
错误消息:
PS C:UsersMithil BhorasDocumentsGitHubchakrichakri> git push heroku master
Counting objects: 90, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (80/80), done.
Writing objects: 100% (90/90), 8.78 MiB | 234.00 KiB/s, done.
Total 90 (delta 26), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote:  !     No default language could be detected for this app.
remote:                         HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote:                         See https://devcenter.heroku.com/articles/buildpacks
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to chakrilevels.
remote:
To https://git.heroku.com/chakrilevels.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/chakrilevels.git'
推荐答案
对于将来的读者,解决方案与@hansTheFranz的注释相同,但从命令行:
- 在应用创建时: - heroku create --buildpack heroku/python app_name
- 对于现有应用: - heroku buildpacks:set heroku/python
另外,官方Heroku Buildpack: Python文档可能会有所帮助。
这篇关于Heroku和Django:无法检测到此应用程序的默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
				 沃梦达教程
				
			本文标题为:Heroku和Django:无法检测到此应用程序的默认语言
 
				
         
 
            
        基础教程推荐
             猜你喜欢
        
	     - 在Python中从Azure BLOB存储中读取文件 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 求两个直方图的卷积 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- 包装空间模型 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
 
    	 
    	 
    	 
    	 
    	 
    	 
    	 
    	 
				 
				 
				 
				