{"id":1154,"date":"2016-11-07T13:21:37","date_gmt":"2016-11-07T12:21:37","guid":{"rendered":"https:\/\/www.vincentverloop.nl\/?p=1154"},"modified":"2021-08-06T22:07:31","modified_gmt":"2021-08-06T20:07:31","slug":"how-to-install-django","status":"publish","type":"post","link":"https:\/\/www.vincentverloop.nl\/uncategorized\/how-to-install-django\/","title":{"rendered":"How to install Django"},"content":{"rendered":"
What you need for a basic dev environment:<\/p>\n
Note: This tutorial utilizes Python version 2.7.8.<\/p>\n
<\/p>\n
Installation instructions are slightly different depending on whether you\u2019re installing a distribution-specific package,
\ndownloading the latest official release, or fetching the latest development version.<\/p>\n
It\u2019s easy, no matter which way you choose.<\/p>\n
This is the recommended way to install Django.<\/p>\n
Install pip<\/a>. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it\u2019s outdated. If it\u2019s outdated, you\u2019ll know because installation won\u2019t work.<\/p>\n Take a look at virtualenv<\/a> and virtualenvwrapper<\/a>. These tools provide isolated Python environments, which are more practical than installing packages systemwide. They also allow installing packages without administrator privileges. The contributing tutorial walks through how to create a virtualenv on Python 3.<\/p>\n After you\u2019ve created and activated a virtual environment, enter the command [:en]<\/p>\n What you need for a basic dev environment:<\/p>\n Note: This tutorial utilizes Python version 2.7.8.<\/p>\n <\/p>\n Installation instructions are slightly different depending on whether you\u2019re installing a distribution-specific package, It\u2019s easy, no matter which way you choose.<\/p>\n This is the recommended way to install Django.<\/p>\n Install pip<\/a>. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it\u2019s outdated. If it\u2019s outdated, you\u2019ll know because installation won\u2019t work.<\/p>\n Take a look at virtualenv<\/a> and virtualenvwrapper<\/a>. These tools provide isolated Python environments, which are more practical than installing packages systemwide. They also allow installing packages without administrator privileges. The contributing tutorial walks through how to create a virtualenv on Python 3.<\/p>\n After you\u2019ve created and activated a virtual environment, enter the command pip install Django at the shell prompt.<\/p>\n","protected":false},"excerpt":{"rendered":" Setup What you need for a basic dev environment: Python 2.7.x or 3.4.x easy_install and Pip Git virtualenv Django Database (SQLite, MySQL, PostgreSQL, MongoDB, etc.) Text editor (Sublime, vim, Komodo, gedit, Pycharm) Note: This tutorial utilizes Python version 2.7.8.<\/p>\n","protected":false},"author":1,"featured_media":1206,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1154","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"acf":{"teaser_image":null},"yoast_head":"mkvirtualenv mysite<\/code><\/pre>\n
workon mysite<\/code><\/pre>\n
pip install --upgrade pip<\/code><\/pre>\n
pip install django<\/code> at the shell prompt.<\/p>\n
django-admin startproject mysite<\/code><\/pre>\n
python manage.py migrate<\/code><\/pre>\n
python manage.py createsuperuser<\/code><\/pre>\n
python manage.py runserver<\/code><\/pre>\n
http:\/\/127.0.0.1:8000\/admin\/<\/code><\/pre>\n
Setup<\/h2>\n
\n
\ndownloading the latest official release, or fetching the latest development version.<\/p>\nInstalling an official release with pip<\/h2>\n