Answer the question
In order to leave comments, you need to log in
List of countries and cities for a User profile in Django?
I'm looking for a library or module for django (1.8). For user profile. Where the user would choose from two dropouts his country and then his city in the selected country. The language is English, ideally with country flags (small).
At least lists of countries with cities tied to these countries. Not necessarily hard-wired to the User model
Answer the question
In order to leave comments, you need to log in
I'm not sure if there is such a ready-made one (if there is, then this, in my opinion, is ideologically incorrect). But it is easy to assemble from individual batteries.
For example, the list of countries is in django-countries . There seem to be flags. There are a lot of decisions on related selects. Here are a few things from Google that seem to be updated:
- django-clever-selects
- django-smart-selects
- django-selectable (separately about related lists )
City databases ... Most likely, you need to look in open sources like geonames . For him, by the way, there is a jung battery
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question