django.utils.copycompat is deprecated

82 views
Skip to first unread message

tino

unread,
Oct 28, 2013, 12:49:24 PM10/28/13
to django...@googlegroups.com
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


Is this something to worry about?

Regards
Tino

Russell Keith-Magee

unread,
Oct 29, 2013, 7:50:13 PM10/29/13
to Django Users

Hi Tino

On Tue, Oct 29, 2013 at 12:49 AM, tino <tin...@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 %-)
Reply all
Reply to author
Forward
0 new messages