Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it work only in USA ? #30

Open
mastermind860 opened this issue Sep 2, 2018 · 3 comments
Open

Does it work only in USA ? #30

mastermind860 opened this issue Sep 2, 2018 · 3 comments

Comments

@mastermind860
Copy link

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

@CoolMikey
Copy link

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!

@ggrammar
Copy link
Owner

ggrammar commented Sep 7, 2018

@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.

@btarg
Copy link

btarg commented Sep 12, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants