caciviclab / disclosure-backend

DEPRECATED (We're working on the `disclosure-backend-static` repo instead) A Django app to download, extract and load campaign finance and lobbying activity data from the California Secretary of State's CAL-ACCESS database as well as local Netfile jurisdictions
https://github.com/caciviclab/disclosure-backend-static/
11 stars 20 forks source link

Django causes warnings from install/running calaccess_raw code #68

Open rkiddy opened 9 years ago

rkiddy commented 9 years ago

Just something to be aware of. If the cause of these are known and something is in the pipe, I will not bother looking at them. And if this is only happening on my system, I probably will not look at them. But if it is something real, I can.

 $ python disclosure-backend/manage.py migrate
 /home/ray/Projects/OpenCA/disclosure-backend/env/src/django-calaccess-raw-data/calaccess_raw/__init__.py:3: 4
 RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor 
 of the new application loading system.
   from django.db.models.loading import get_models, get_app

and

 $ python disclosure-backend/manage.py downloadcalaccessrawdata --use-test-data
 /home/ray/Projects/OpenCA/disclosure-backend/env/src/django-calaccess-raw-data/calaccess_raw/__init__.py:3: 
 RemovedInDjango19Warning: The utilities in django.db.models.loading are deprecated in favor 
 of the new application loading system.
   from django.db.models.loading import get_models, get_app

 Using test data
 Cleaning data files
 [################################] 80/80 - 00:00:02
 Loading data files
 /home/ray/Projects/OpenCA/disclosure-backend/env/src/django-calaccess-raw-data/calaccess_raw/__init__.py:35: 
 RemovedInDjango19Warning: get_app_config(app_label).models_module supersedes 
 get_app(app_label).
   return get_models(get_app("calaccess_raw"))

 /home/ray/Projects/OpenCA/disclosure-backend/env/local/lib/python2.7/site-packages/django/utils/lru_cache.py:101: 
 RemovedInDjango19Warning: The app_mod argument of get_models is deprecated.
   result = user_function(*args, **kwds)
tdooner commented 9 years ago

They happen to me too. I think they're more of an annoyance for now -- ideally the CCDC will address them since they are part of the calaccess_raw dependency. If they get too annoying, or we really want to upgrade django for some reason, then we'll have to pay attention to them.