Hi all I recently upgraded one of my apps to the next iteration. This used a third party library, which started spewing out DeprecationWarning messages when I deployed it to the test site. None of these warnings appeared when I was developing, and I was wondering if there was a reason why. The only noticeable difference I can see between the two is that I use python 2.7 in development, and 2.5 in test/production - dev is on my laptop, where as the others are on dedicated boxes.
In both cases, the required packages are installed into a virtualenv via pip from a requirements file, so the environment can be wiped out and re-created, which I did on both dev and test, without changing the end result. So, in dev: > $ md5 ../environ/src/django-postgresql-netfields/netfields/fields.py MD5 (../environ/src/django-postgresql-netfields/netfields/fields.py) = 3ad794d519a1328b1587a9f604324888 > $ python manage.py shell Python 2.7.1 (r271:86832, Dec 13 2010, 15:52:15) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd8 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import django >>> django.VERSION (1, 3, 0, 'final', 0) In test: > $ md5 ../environ/lib/python2.5/site-packages/netfields/fields.py MD5 (../environ/lib/python2.5/site-packages/netfields/fields.py) = 3ad794d519a1328b1587a9f604324888 > $ python manage.py shell .../environ/lib/python2.5/site-packages/netfields/fields.py:8: DeprecationWarning: A Field class whose get_db_prep_lookup method hasn't been updated to take `connection` and `prepared` arguments. class _NetAddressField(models.Field): .../environ/lib/python2.5/site-packages/netfields/fields.py:8: DeprecationWarning: A Field class whose get_db_prep_value method hasn't been updated to take `connection` and `prepared` arguments. class _NetAddressField(models.Field): .../environ/lib/python2.5/site-packages/django/db/models/fields/subclassing.py:80: DeprecationWarning: A Field class whose db_type method hasn't been updated to take a `connection` argument. new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs) .../environ/lib/python2.5/site-packages/netfields/fields.py:86: DeprecationWarning: A Field class whose db_type method hasn't been updated to take a `connection` argument. class MACAddressField(models.Field): Python 2.5.2 (r252:60911, Apr 25 2008, 17:25:09) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> import django >>> django.VERSION (1, 3, 0, 'final', 0) The actual warning isn't an issue, I can update the library to fix that, I'm more concerned why I am not seeing the warnings in development. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

