Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Babatunde Akinyanmi
f of Derek Zeng <zen1...@gmail.com> > *Sent:* Tuesday, April 10, 2018 10:31:27 AM > *To:* django-users@googlegroups.com > *Subject:* Re: Help: 'django.utils.six.moves' is not a package > > > > On Tue, Apr 10, 2018, 1:39 AM Babatunde Akinyanmi <tundeba...@gmail.com>

Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Julio Biason
users@googlegroups.com <django-users@googlegroups.com> on behalf of Derek Zeng <zen1...@gmail.com> Sent: Tuesday, April 10, 2018 10:31:27 AM To: django-users@googlegroups.com Subject: Re: Help: 'django.utils.six.moves' is not a package On Tue, Apr 10, 2018, 1:39 AM Babatunde Akinyanmi <tunde

Re: Help: 'django.utils.six.moves' is not a package

2018-04-10 Thread Derek Zeng
On Tue, Apr 10, 2018, 1:39 AM Babatunde Akinyanmi wrote: > > > On Tue, 10 Apr 2018, 02:47 Derek Zeng, wrote: > >> I'm using django 2.0. >> What exactly is the purpose of django.utils.six.moves module? >> > Allowing a code base to be able to run on both

Re: Help: 'django.utils.six.moves' is not a package

2018-04-09 Thread Babatunde Akinyanmi
On Tue, 10 Apr 2018, 02:47 Derek Zeng, wrote: > I'm using django 2.0. > What exactly is the purpose of django.utils.six.moves module? > Allowing a code base to be able to run on both python 2 and python 3 I have read the source but don't quite understand. Seems like a

Re: Help: 'django.utils.six.moves' is not a package

2018-04-09 Thread Derek Zeng
I'm using django 2.0. What exactly is the purpose of django.utils.six.moves module? I have read the source but don't quite understand. Seems like a poly-fill of pre-existing libraries like urllib On Mon, Apr 9, 2018 at 3:47 PM, Avraham Serour wrote: > sounds like django 2

Re: Help: 'django.utils.six.moves' is not a package

2018-04-09 Thread Avraham Serour
sounds like django 2 removed six and some library you are using still hopes it exists. what django version are you using? On Mon, Apr 9, 2018 at 3:39 AM, Derek Zeng wrote: > I got the following error when running pytest in django. Help is > appreciated. > > This is the test

Help: 'django.utils.six.moves' is not a package

2018-04-08 Thread Derek Zeng
I got the following error when running pytest in django. Help is appreciated. This is the test I run import pytest from .factories import * @pytest.mark.django_db def test_with_client(client): PostFactory.create() # if commented out, the error is gone response = client.get('/') body =