Tuesday, October 29, 2013

Re: django.utils.copycompat is deprecated


Hi Tino

On Tue, Oct 29, 2013 at 12:49 AM, tino <tino85@gmail.com> wrote:
Hello,

I am getting the following in apache error log.


[error] /home/findme/virtualenv/lib/python2.7/site-packages/django/utils/copycompat.py:10: DeprecationWarning: django.utils.copycompat is deprecated; use the native copy module instead


Well, it's only an issue if you're expecting your code to keep running into the future :-)

It will become an issue when you upgrade to the next version of Django (the version one release above what you're currently using). At that point, your code will stop working because you'll be trying to import a module that no longer exists. Django's deprecation process involves introducing warnings like the one you've reported so that you are informed that your code is using a deprecated feature.

Keep in mind that it might not be your own code that is importing copycompat -- it might be a third party library. In that case, the third party library will need to be updated.

The only thing I can guarantee is that it *isn't* being caused by Django itself.

Yours,
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq8489BVjLiuoDMFrgQVEnpzTwsYKoyGeA9-fiMNM%2BD42VNA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment