How to install Django

Setup

What you need for a basic dev environment:

Note: This tutorial utilizes Python version 2.7.8.

Installation instructions are slightly different depending on whether you’re installing a distribution-specific package,
downloading the latest official release, or fetching the latest development version.

It’s easy, no matter which way you choose.

Installing an official release with pip

This is the recommended way to install Django.

Install pip. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it’s outdated. If it’s outdated, you’ll know because installation won’t work.

Take a look at virtualenv and virtualenvwrapper. 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.

mkvirtualenv mysite
workon mysite
pip install --upgrade pip

After you’ve created and activated a virtual environment, enter the command pip install django at the shell prompt.

django-admin startproject mysite
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
http://127.0.0.1:8000/admin/

[:en]

Setup

What you need for a basic dev environment:

Note: This tutorial utilizes Python version 2.7.8.

Installation instructions are slightly different depending on whether you’re installing a distribution-specific package,
downloading the latest official release, or fetching the latest development version.

It’s easy, no matter which way you choose.

Installing an official release with pip

This is the recommended way to install Django.

Install pip. The easiest is to use the standalone pip installer. If your distribution already has pip installed, you might need to update it if it’s outdated. If it’s outdated, you’ll know because installation won’t work.

Take a look at virtualenv and virtualenvwrapper. 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.

After you’ve created and activated a virtual environment, enter the command pip install Django at the shell prompt.


Vincent Verloop

Ervaren ICT Professional met een bewezen geschiedenis van werken in de IT. Begonnen in eigen computer werkplaats, daarna aan het werk gegaan bij KPN als technische helpdeskmedewerker. Daarna Ziggo monteur. Daarna systeembeheerder bij Rijksdienst voor Wegverkeer. Daarna Zelfstandig Ondernemer. Daarna Sport Computer Graphics. Daarna T-Mobile/Tele2. Daarna Centric. Bekwaam in OS X, Search Engine Optimization (SEO), PHP, WordPress en Domain Name System (DNS). Sterke media- en communicatieprofessional met een diploma MBO niveau 4 gericht op ICT-beheer / ICT-beheerder. Volg Vincent Verloop op Twitter.

Geef een antwoord

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

BLIJF OP DE HOOGTE
Schrijf u in voor onze gratis nieuwsbrief


© Vincent Verloop. All rights reserved. Powered by Verloophosting.