With the momentum of installing Python3
, try installing Django
.
PC: MacOS X 10.9.4 Python3.4.1 Django1.6.6
According to the information, it seems that Django
can be installed with a package management tool called pip
, so I lightly typed the pip3
command.
django
without using pip
(git
or direct download).There was no particular problem, it wasn't too daunting, and it was installed very easily.
I was able to install it smoothly, so let's check it according to the model.
$ python3 -c "import django; print(django.get_version())"
The above is the Python3
command, which runs the script directly.
It's like importing the django
package and printing the version of Django
with the print
function. In other words, it works fine as a script.
Another way to check the version is to use the django-admin.py
script.
$ django-admin.py --version
For the time being, I was able to confirm that the latest version Django 1.6.6
is installed at the moment (end of August 2014).
As an aside, I tried running the python
command instead of the python3
command.
As expected, I got an import error that the django
module was not found.
You can see that Django
was installed in the normal path of python3
by installing with pip3
instead of pip
earlier.
Finally, I ran the previous django-admin.py
with no command arguments.
You'll see a list of various django
commands you'll use in the future.
Gradually, I was looking forward to seeing the outline.
Lovely Django!!
Recommended Posts