Answer the question
In order to leave comments, you need to log in
Problem with Django?
I'm making an example from the official documentation: Django . But I get an error:
But the problem is that I'm using python 2.7 instead of the recommended version 3. I think that because of this I get an error, but here's the trouble, I'm trying to run version 3 of the interpreter, as other errors arise:
$ python3 -c "import django; print(django.get_version())"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'django'
$ pip install Django
Requirement already satisfied (use --upgrade to upgrade): Django in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Answer the question
In order to leave comments, you need to log in
I installed Django in python3 with the command: I
ran the example with it and everything was done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question