如何在Heroku安装Django的GeoIP ?

时间:2022-04-25 11:24:36

I'm trying to install the MaxMind C library API on heroku to support GeoIP for a Django app. I've looked everywhere online, but I could only find methods to install this C library for Ruby on Heroku. How would I be able to install this MaxMind C library API along with the free city and country databases? Thanks!

我正在尝试在heroku上安装MaxMind C库API,以支持GeoIP为Django应用程序。我在网上找遍了所有地方,但我只能找到方法为heroku上的Ruby安装这个C库。如何安装MaxMind C库API以及免费城市和国家数据库?谢谢!

1 个解决方案

#1


2  

There is a python Heroku Buildpack avaliable on Github that contains geoip.

在Github上有一个python Heroku构建包,它包含geoip。

This ia the ne I found https://github.com/Bouke/heroku-buildpack-python-geoip/tree/master

我找到了https://github.com/bouke/heroku - buildpack-pythongeoip/tree/master

#1


2  

There is a python Heroku Buildpack avaliable on Github that contains geoip.

在Github上有一个python Heroku构建包,它包含geoip。

This ia the ne I found https://github.com/Bouke/heroku-buildpack-python-geoip/tree/master

我找到了https://github.com/bouke/heroku - buildpack-pythongeoip/tree/master