How to install Django on Ubuntu 11.10?

I am using the Ultimate Django Installation Guide on ubuntu and ironically needs something more specific because I cannot get it to work.

(I followed the steps above at the link above)

Here is my situation / stop:

drewverlee@ubuntu :/var/src$ tar xzvf Django-1.3.1.tar.gz tar (child): Django-1.3.1.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now 

So this tells me that there is no Django-1.3.1.tar.gz file? I think I can check the file with us:

 drewverlee@ubuntu :/var/src$ ls index.html index.html.1 drewverlee@ubuntu :/var/src$ 

What do I need to do?

+6
source share
6 answers

In fact, after the link, I get the same problem first.

 mv index.html Django-1.3.1.tar.gz 

corrects this for me. Then you can continue

 tar xzvf Django-1.3.1.tar.gz 
0
source

pip is the best tool to install python packages. Here is the link to install the installation tools and pip on ubuntu.

If you installed pip, then it will be very easy to install django and other python packages.

 $ sudo pip install django 

or for a specific version of django

 $ sudo pip install django==1.3.1 
+17
source

If you are using ubuntu, you can simply use the package specified in the repositories:

 $ sudo apt-get install python-django ... $ python -c 'import django; print django.get_version()' 1.3 
+3
source

Any guide that does not include virtualenv and virtualenvwrapper is definitely not defined for me :) Seriously, this will save you from the world of pain.

Also nginx + gunicorn is now the default method for serving django, not Apache + mod_wsgi, but I would say that this is less specific.

0
source

1) download Django-1.3.1.tar.gz https://www.djangoproject.com/download/

2) go to the directory with the file

 tar xzvf Django-1.3.1.tar.gz cd Django-1.3.1 sudo python setup.py install 

3) check if python django sees

 >>> python >>>import django >>>print django.get_version() 

After that, you get Aptana as an IDE for working with django

0
source

if you have easy_install:

 easy_install django 

and for a specific version:

 easy_install django==1.#.# 
0
source

Source: https://habr.com/ru/post/909951/


All Articles