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

Settings seems to not work as expected #181

Open
AjejeBrazorf opened this issue Jun 1, 2018 · 1 comment
Open

Settings seems to not work as expected #181

AjejeBrazorf opened this issue Jun 1, 2018 · 1 comment
Assignees

Comments

@AjejeBrazorf
Copy link

Hi,
I installed django-cities-light via pip and added to the apps of my project.
I also wrote this configuration in the settings.py

CITIES_LIGHT_TRANSLATION_LANGUAGES = ['it']
CITIES_LIGHT_INCLUDE_COUNTRIES = ['IT']
CITIES_LIGHT_INCLUDE_CITY_TYPES = ['PPL', 'PPLA', 'PPLA2', 'PPLA3', 'PPLA4', 'PPLC', 'PPLF', 'PPLG', 'PPLH', 'PPLL', 'PPLC', 'PPLR', 'PPLS', 'STLMT',]

Then I ran python manage migrate and python manage cities_light.

My Postgres db didn't populate as I expected.
Infact, other countries have been imported.
image
Should I put the CITIES_LIGHT_INCLUDE_COUNTRIES = ['IT'] somewhere else maybe?
I couldn't find this info in other issues or the README

Thanks for your time

@wswld
Copy link

wswld commented Aug 4, 2018

I'm having hard time reproducing this, I did everything you listed here and have only Italy and its cities in the database. What may have you done differently?
As I understood your database is Postgres. What version of Python and Django are you using?

@wswld wswld self-assigned this Aug 4, 2018
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

2 participants