-
Notifications
You must be signed in to change notification settings - Fork 126
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
Final 'Cities' data pull takes too long, and breaks (probably times itself out?) :( #267
Comments
Another update in the interim: My experiment with setting up a New Django Project with local SQLite DB, and no VENV also didn´t bear fruit. There too, all is fine until we are at the stage where we are pulling-in Cities. It failed, and blurted out the following :
I have now set it to --force-import-all, to see if that would help, if at all....
|
Hi: Thank you for this wonderful project, to begin with. :)
I have been trying, for a couple of days now, to integrate 'django-cities-light' in one of my Django (4.0) projects which I run in an virtualenv on a Fedora 36 (local machine - development) installation, with Python 3.10.4. Also to note here, that the project is using a remote PostGreSQL DB, hosted with ElephantSQL (on an AWS HK server). Hope this is enough pertinent information.
Once I start the app (which is registered in INSTALLED_APPS for the project), with
-- it starts downloading fields and migrates them, albeit at a slow rate. But if am patient, I am able to successfully integrate everything one by one, down from Country > Region/states > Subregions, and their hierarchy. However, the last (and largest) bit of Cities, seems to never end, or populate anything.
(Side note: I am not filtering any data out - need all countries > states > cities ).
Yesterday night, I also tried
, and kept it running through the night, to give it enough time. I guess it timed itself out or something, and I woke up to a broken sync (once again), and 0 Cities entries in the DB Table.
Could there not be a way to initialise with a complete [+ somehwat latest] dump, and then initialise the django_cities app in your Django project, so that it first updates the DB with this "about-latest" data dump ; and then, when given the '-import-latest' command (or something like that) on the CLI, will reconcile with the geonames.org environment for updates/changes or additions, and then only deal with it to that extent? (#suggestion)
[On the side: I have also now created a new project with no venv, and a standard local serverless SQLite Django DB, to see if that helps. ]
For now, this is what showed up on my terminal. Kindly check it out, and let me know, if there's something I could do to fix it, and get Cities populated quickly. (Many thanks in advance.)
Many thanks in advance, for your help and guidance! :)
The text was updated successfully, but these errors were encountered: