在Heroku上安装GeoDjango
我正在尝试构建一个使用GeoDjango的webapp。该应用程序将在Heroku上托管,但我正面临其中的问题。我正在使用这个 buildpack,但是这个错误即将到来。想知道这是因为雪松14而发生的,但是我不清楚我下一步应该怎么做。
I am trying to build a webapp which uses GeoDjango. The app is to be hosted on Heroku, but I am facing issues in it. I am using this buildpack but then this error is coming. Figured out that this is happening because of Cedar 14 but I am not clear as to what should I do next.
此外,我尝试使用这个 buildpack,但如所讨论这里,这个问题可以通过使用buildpath作为
Also I tried using this buildpack but as discussed here, this issue can be resolved by using the buildpath as
$ heroku config:添加BUILDPACK_URL = https://github.com/cyberdelia/heroku-geo-buildpack.git#1.3
我尝试了相同但现在它没有将其作为Python应用程序进行检测,现在我面临 django导入错误 - 没有名为core.management的模块的问题,这是因为它没有安装Django。
I tried the same but now it is not detecting it as a Python app and now I am facing the issue of "django import error - No module named core.management " missing, which is because its not installing Django.
任何帮助将不胜感激。
我想出了解决方案只有问题我自己。
I figured out the solution to this problem myself only.
为 BUILDPACK_URL $添加多个值c $ c>,需要使用一个可以为多个
BUILDPACK_URL
添加支持的构建包。
To add multiple values for a BUILDPACK_URL
, one needs to use a buildpack which can add support for mutiple BUILDPACK_URL
.
所以我用此。可以像
$ heroku config:add BUILDPACK_URL = https://github.com/ddollar/heroku-buildpack-multi.git
此后创建一个文件 .buildpacks
并添加以下
After this create a file .buildpacks
and add to it the following
https://github.com/cyberdelia/heroku-geo-buildpack.git#e1b845b
https://github.com/heroku /heroku-buildpack-python.git
请注意,#e1845b
是因为这个评论,其中提到它是因为某些缓存问题。
Note that #e1845b
is because of this comment, which mentions that it is because of some caching issues.