On Sep 2, 2017 11:17 PM, "Derek Zeng" <zen1...@gmail.com> wrote:

Hi,

Today I tried to install my django project on a new mac computer. I used
virutalenv to setup the packages.

After I start the app by running './mange.py runserver' and access the home
page I got the error

from django.utils.six.moves import range, ImportError: cannot import name
> 'range'


Really not sure why it has this weird error. I'm using python 3.6.2

Any help is appreciated!


Is the referenced error coming from code that you wrote?

There's a comma at the end of the import line, which may cause that error.

Also make sure that you've installed Django within your virtualenv. If it
is, then also make sure you have six installed (although Django should have
done that already).

-James

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXBx28t5kOo4FdSarW-h4O44UO%3D2JoO-00yd_6o%3DLhPxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to