Django begins part 1

With the momentum of installing Python3, try installing Django.

Development environment

PC: MacOS X 10.9.4 Python3.4.1 Django1.6.6

Django installation

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.

スクリーンショット 2014-08-31 22.08.14.png

There was no particular problem, it wasn't too daunting, and it was installed very easily.

Check Django version

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

スクリーンショット 2014-08-31 22.37.41.png

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).

Django's relationship with older versions

As an aside, I tried running the python command instead of the python3 command.

スクリーンショット 2014-08-31 22.44.25.png

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.

django-admin.py script

Finally, I ran the previous django-admin.py with no command arguments.

スクリーンショット 2014-08-31 22.34.01.png

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

Django begins part 1
Django begins part 4
Django starting from scratch (part: 2)
Django starting from scratch (part: 1)
Django
Test Driven Development with Django Part 3
Test Driven Development with Django Part 4
Test Driven Development with Django Part 6
Test Driven Development with Django Part 2
Test Driven Development with Django Part 1
Test Driven Development with Django Part 5
How to authenticate with Django Part 2
How to authenticate with Django Part 3
datetime part 1
django update
Django note 4
Tkinter begins
Django memorandum
django search
numpy part 1
Django installation
Jupyter begins
Django Summary
Django test
Poetry begins
argparse part 1
[Django] Error encountered when deploying heroku Part 2
Deploy the Django app on Heroku [Part 2]
PyCharm begins
Deploy the Django app on Heroku [Part 1]
Django # 2 (template)
Django Note 5
[Django] Trouble encountered when deploying heroku Part 1
Django hands-on
Touch django
django notes
Django Summary
Django basics
Django Shoho
Django defaults
Django + Docker
Django Glossary
Django search
Install Django
numpy part 2
Django: References
Django Note 1
Django note 3
Django note 2
Django startup
Django notes
Django NullCharField
Make Django's environment Docker (Docker + Django + Gunicorn + nginx) Part 2
Django Getting Started Part 2 with eclipse Plugin (PyDev)
Django Getting Started Part 3 about Python3 & MySQL Connector
Make Django's environment Docker (Docker + Django + Gunicorn + nginx) Part 3