G
G
Grigory Dikiy2016-01-20 20:44:33
Django
Grigory Dikiy, 2016-01-20 20:44:33

Problem with Django?

I'm making an example from the official documentation: Django . But I get an error:
af9102b1bb784c93bdcaab27314916ba.png
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...

As you can see, Django is installed by default in /usr/local/lib/python2.7/dist-packages . Should I just copy the Django folder?
PS I'm just getting acquainted with python and Django

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Dikiy, 2016-01-20
@frilix

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 question

Ask a Question

731 491 924 answers to any question