backup1-technicise / Django-Sample

Few projects and CRUD operations using Django (1.11.2), Django Piston and Python 2.7
MIT License
1 stars 0 forks source link

Installation of latest version of Django and Django Piston #2

Open backup1-technicise opened 7 years ago

backup1-technicise commented 7 years ago

Django Installation

(django_venv) user@user-Vostro-3550:~/code/Django-Sample$ easy_install Django
Searching for Django
Reading https://pypi.python.org/simple/Django/
Downloading https://pypi.python.org/packages/45/23/a5dbb0cfee731549032034d2666cabba47a447f811f706cff82fd1947efc/Django-1.11.3.tar.gz#md5=fe23bb9ae450698451ac82cb636bb882
Best match: Django 1.11.3
Processing Django-1.11.3.tar.gz
Writing /tmp/easy_install-NEwFdP/Django-1.11.3/setup.cfg
Running Django-1.11.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-NEwFdP/Django-1.11.3/egg-dist-tmp-hWqole
no previously-included directories found matching 'django/contrib/admin/bin'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
creating /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages/Django-1.11.3-py2.7.egg
Extracting Django-1.11.3-py2.7.egg to /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages
Adding Django 1.11.3 to easy-install.pth file
Installing django-admin.py script to /home/user/code/Django-Sample/django_venv/bin
Installing django-admin script to /home/user/code/Django-Sample/django_venv/bin

Installed /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages/Django-1.11.3-py2.7.egg
Processing dependencies for Django
Searching for pytz
Reading https://pypi.python.org/simple/pytz/
Downloading https://pypi.python.org/packages/42/76/817ef6af92ae3d077465bccfd8a1ae47d02d6db83d558711b503540ca5c7/pytz-2017.2-py2.7.egg#md5=8d7d381ad2730ab62c94caf82d80179a
Best match: pytz 2017.2
Processing pytz-2017.2-py2.7.egg
Moving pytz-2017.2-py2.7.egg to /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages
Adding pytz 2017.2 to easy-install.pth file

Installed /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages/pytz-2017.2-py2.7.egg
Finished processing dependencies for Django
(django_venv) user@user-Vostro-3550:~/code/Django-Sample$ 
(django_venv) user@user-Vostro-3550:~/code/Django-Sample$ 
(django_venv) user@user-Vostro-3550:~/code/Django-Sample$ ls
django_venv  LICENSE  README.md
(django_venv) user@user-Vostro-3550:~/code/Django-Sample$ cd django_venv/
(django_venv) user@user-Vostro-3550:~/code/Django-Sample/django_venv$ ls -l bin/
total 3344
-rw-rw-r-- 1 user user    2100 Jul  2 22:19 activate
-rw-rw-r-- 1 user user    1042 Jul  2 22:19 activate.csh
-rw-rw-r-- 1 user user    2196 Jul  2 22:19 activate.fish
-rw-rw-r-- 1 user user    1137 Jul  2 22:19 activate_this.py
-rwxrwxr-x 1 user user     431 Jul  2 22:39 django-admin
-rwxrwxr-x 1 user user     224 Jul  2 22:39 django-admin.py
-rwxrwxr-x 1 user user     273 Jul  2 22:19 easy_install
-rwxrwxr-x 1 user user     273 Jul  2 22:19 easy_install-2.7
-rwxrwxr-x 1 user user     245 Jul  2 22:19 pip
-rwxrwxr-x 1 user user     245 Jul  2 22:19 pip2
-rwxrwxr-x 1 user user     245 Jul  2 22:19 pip2.7
lrwxrwxrwx 1 user user       9 Jul  2 22:18 python -> python2.7
lrwxrwxrwx 1 user user       9 Jul  2 22:18 python2 -> python2.7
-rwxrwxr-x 1 user user 3370728 Jul  2 22:18 python2.7
-rwxrwxr-x 1 user user    2359 Jul  2 22:19 python-config
-rwxrwxr-x 1 user user     252 Jul  2 22:19 wheel
(django_venv) user@user-Vostro-3550:~/code/Django-Sample/django_venv$ 
backup1-technicise commented 7 years ago

Installation of Django-piston

Though Django-piston is deprecated with latest version of Django then following installation is not required.

~~(django_venv) user@user-Vostro-3550:~/code/Django-Sample/django_venv$ easy_install Django-piston Searching for Django-piston Reading https://pypi.python.org/simple/Django-piston/ Downloading https://pypi.python.org/packages/e6/dc/a634d7fa05c75eed113adbf4f63a75c01371714c30665035abc7e8ca027c/django-piston-0.2.3.tar.gz#md5=8b040d426793cf22ce89543e059cd6e1 Best match: django-piston 0.2.3 Processing django-piston-0.2.3.tar.gz Writing /tmp/easy_install-_Sa96U/django-piston-0.2.3/setup.cfg Running django-piston-0.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_Sa96U/django-piston-0.2.3/egg-dist-tmp-oqruFR creating /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages/django_piston-0.2.3-py2.7.egg Extracting django_piston-0.2.3-py2.7.egg to /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages Adding django-piston 0.2.3 to easy-install.pth file Installed /home/user/code/Django-Sample/django_venv/lib/python2.7/site-packages/django_piston-0.2.3-py2.7.egg Processing dependencies for Django-piston Finished processing dependencies for Django-piston~~

backup1-technicise commented 7 years ago

Installation of Django REST Framework

user@user-VirtualBox:~/code/Django-Sample$ source django_venv/bin/activate
(django_venv) user@user-VirtualBox:~/code/Django-Sample$ pip install djangorestframework
Collecting djangorestframework
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f5caa9437d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/djangorestframework/
/home/user/code/Django-Sample/django_venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/user/code/Django-Sample/django_venv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading djangorestframework-3.6.3-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 247kB/s 
Installing collected packages: djangorestframework
Successfully installed djangorestframework-3.6.3
(django_venv) user@user-VirtualBox:~/code/Django-Sample$