installing GeoDjango on Heroku

99封情书 提交于 2019-12-10 17:57:20

问题


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.

Also I tried using this buildpack but as discussed here, this issue can be resolved by using the buildpath as

$ heroku config:add BUILDPACK_URL=https://github.com/cyberdelia/heroku-geo-buildpack.git#1.3

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.

Any help will be greatly appreciated.


回答1:


I figured out the solution to this problem myself only.

To add multiple values for a BUILDPACK_URL, one needs to use a buildpack which can add support for mutiple BUILDPACK_URL.

So I used this. One can write like

$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

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

Note that #e1845b is because of this comment, which mentions that it is because of some caching issues.



来源:https://stackoverflow.com/questions/28350422/installing-geodjango-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!