A
A
Alexander2015-04-26 22:02:56
Django
Alexander, 2015-04-26 22:02:56

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

2 answer(s)
M
marazmiki, 2015-04-26
@syschel

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

V
Vlad171, 2015-04-26
@Vlad171

You're unlikely to find one like this. There is a great django-userena module. It just connects, everything you need to work with users is there. Everything else can be added through the user's profile.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question