1👍
It is possible, but not out of the box.
You’ll have to make and ajax request after the user selects the country to fetch the cities related to that country and so on.
You will need a view on django that returns the cities given a country in a format that makes it easy to parse on javascript or build the html and send it over the wire if you don’t care about reusing that endpoint (maybe you can check django’s JsonResponse
)
After that, you’ll need to use javascript (it might be a good idea to use something like jquery) to hit that view sending the country id and fetch the corresponding cities.
Hope this helps.
0👍
ya it is possible to do if you create a page of your own, load one country and its states by default, then if you select a country do a ajax call to repopulate the cities, i will suggest angular js for the same.
- How to have multiple types of users in separated tables?
- Maintain path redirect after signup in Django