pizzapi icon indicating copy to clipboard operation
pizzapi copied to clipboard

Does it work only in USA ?

Open mastermind860 opened this issue 7 years ago • 3 comments

I am from India. Can i use this for ordering pizza here ? if not, what should i do to make it work ?

mastermind860 avatar Sep 02 '18 09:09 mastermind860

No, it only works in the USA and Canada, but I guess your question is does it work in India? - it doesn't work in India. To be honest, I don't know if it is even possible, but my best guess is to modify the urls in urls.py to appropriate ones. Try adding a COUNTRY_INDIA in the self.urls variable and changing the address.py import at the beggining from: from .urls import Urls, COUNTRY_USA to: from .urls import Urls, COUNTRY_INDIA or whatever variable name You decide to use. I would first try just to change the domain from .com to .co.in If you succeed please send me a message. Good luck!

CoolMikey avatar Sep 05 '18 09:09 CoolMikey

@mastermind860

Take a look at https://github.com/gamagori/pizzapi/blob/master/pizzapi/urls.py to get an idea for how the distinction between USA and Canada works.

It could be that the India API is entirely different, but I'd bet if you could figure out the URLs, you'd just have to insert a new entry in the urls.py file.

ggrammar avatar Sep 07 '18 18:09 ggrammar

My fork supports UK, Japan and India. I don't know how well it works, but I added the regions. Try cloning it!

btarg avatar Sep 12 '18 16:09 btarg