O'Reilly logo

Learning Django Web Development by Ratan Kumar, Sanjeev Jaiswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Django

Although you have already installed Django, we will do this again because Django will be managed by virtualenv, which can't be messed up by other projects or users (or yourself) working elsewhere.

$pip install django

You may get an error as follows:

bad interpreter: No such file or directory

If so, create your virtualenv environment within a path without spaces. It is most likely that, in the path to the location where you have created your virtual environment, there exists a directory whose name contains a space, for example, /home/ratan/folder name with space$virtualenv django_env.

If so, change the directory name to something like the following:

/home/ratan/folder_name_with_no_space$virtualenv django_env

We can proceed with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required