django tree


[root@worker ~]# yum install centos-release-scl
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.praction.in
 * extras: mirrors.praction.in
 * updates: mirrors.praction.in
Kubernetes                                               | 1.4 kB     00:00   
base                                                     | 3.6 kB     00:00   
extras                                                   | 2.9 kB     00:00   
updates                                                  | 2.9 kB     00:00   
Resolving Dependencies
--> Running transaction check
---> Package centos-release-scl.noarch 0:2-3.el7.centos will be installed
--> Processing Dependency: centos-release-scl-rh for package: centos-release-scl-2-3.el7.centos.noarch
--> Running transaction check
---> Package centos-release-scl-rh.noarch 0:2-3.el7.centos will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch        Version               Repository   Size
================================================================================
Installing:
 centos-release-scl         noarch      2-3.el7.centos        extras       12 k
Installing for dependencies:
 centos-release-scl-rh      noarch      2-3.el7.centos        extras       12 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 24 k
Installed size: 39 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): centos-release-scl-2-3.el7.centos.noarch.rpm        |  12 kB   00:00   
(2/2): centos-release-scl-rh-2-3.el7.centos.noarch.rpm     |  12 kB   00:02   
--------------------------------------------------------------------------------
Total                                              7.1 kB/s |  24 kB  00:03   
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : centos-release-scl-rh-2-3.el7.centos.noarch                  1/2
  Installing : centos-release-scl-2-3.el7.centos.noarch                     2/2
  Verifying  : centos-release-scl-2-3.el7.centos.noarch                     1/2
  Verifying  : centos-release-scl-rh-2-3.el7.centos.noarch                  2/2

Installed:
  centos-release-scl.noarch 0:2-3.el7.centos                                 

Dependency Installed:
  centos-release-scl-rh.noarch 0:2-3.el7.centos                               

Complete!
[root@worker ~]# yum install rh-python36
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.praction.in
 * centos-sclo-rh: mirrors.praction.in
 * centos-sclo-sclo: mirrors.praction.in
 * extras: mirrors.praction.in
 * updates: mirrors.praction.in
centos-sclo-rh                                           | 3.0 kB     00:00   
centos-sclo-sclo                                         | 2.9 kB     00:00   
(1/2): centos-sclo-sclo/x86_64/primary_db                  | 322 kB   00:01   
(2/2): centos-sclo-rh/x86_64/primary_db                    | 4.0 MB   00:04   
Resolving Dependencies
--> Running transaction check
---> Package rh-python36.x86_64 0:2.0-1.el7 will be installed
--> Processing Dependency: rh-python36-runtime for package: rh-python36-2.0-1.el7.x86_64
--> Processing Dependency: rh-python36-python-virtualenv for package: rh-python36-2.0-1.el7.x86_64
--> Processing Dependency: rh-python36-python-setuptools for package: rh-python36-2.0-1.el7.x86_64
--> Processing Dependency: rh-python36-python-pip for package: rh-python36-2.0-1.el7.x86_64
--> Processing Dependency: rh-python36-python for package: rh-python36-2.0-1.el7.x86_64
--> Running transaction check
---> Package rh-python36-python.x86_64 0:3.6.3-7.el7 will be installed
--> Processing Dependency: rh-python36-python-libs(x86-64) = 3.6.3-7.el7 for package: rh-python36-python-3.6.3-7.el7.x86_64
--> Processing Dependency: libpython3.6m.so.rh-python36-1.0()(64bit) for package: rh-python36-python-3.6.3-7.el7.x86_64
---> Package rh-python36-python-pip.noarch 0:9.0.1-2.el7 will be installed
---> Package rh-python36-python-setuptools.noarch 0:36.5.0-1.el7 will be installed
---> Package rh-python36-python-virtualenv.noarch 0:15.1.0-2.el7 will be installed
--> Processing Dependency: rh-python36-python-devel for package: rh-python36-python-virtualenv-15.1.0-2.el7.noarch
---> Package rh-python36-runtime.x86_64 0:2.0-1.el7 will be installed
--> Running transaction check
---> Package rh-python36-python-devel.x86_64 0:3.6.3-7.el7 will be installed
--> Processing Dependency: scl-utils-build for package: rh-python36-python-devel-3.6.3-7.el7.x86_64
---> Package rh-python36-python-libs.x86_64 0:3.6.3-7.el7 will be installed
--> Running transaction check
---> Package scl-utils-build.x86_64 0:20130529-19.el7 will be installed
--> Processing Dependency: redhat-rpm-config for package: scl-utils-build-20130529-19.el7.x86_64
--> Running transaction check
---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed
--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: python-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Running transaction check
---> Package dwz.x86_64 0:0.11-3.el7 will be installed
---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed
---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                       Arch   Version              Repository      Size
================================================================================
Installing:
 rh-python36                   x86_64 2.0-1.el7            centos-sclo-rh 2.7 k
Installing for dependencies:
 dwz                           x86_64 0.11-3.el7           base            99 k
 perl-srpm-macros              noarch 1-8.el7              base           4.6 k
 python-srpm-macros            noarch 3-32.el7             base           8.4 k
 redhat-rpm-config             noarch 9.1.0-88.el7.centos  base            81 k
 rh-python36-python            x86_64 3.6.3-7.el7          centos-sclo-rh  55 k
 rh-python36-python-devel      x86_64 3.6.3-7.el7          centos-sclo-rh 841 k
 rh-python36-python-libs       x86_64 3.6.3-7.el7          centos-sclo-rh 7.5 M
 rh-python36-python-pip        noarch 9.0.1-2.el7          centos-sclo-rh 1.7 M
 rh-python36-python-setuptools noarch 36.5.0-1.el7         centos-sclo-rh 566 k
 rh-python36-python-virtualenv noarch 15.1.0-2.el7         centos-sclo-rh 1.8 M
 rh-python36-runtime           x86_64 2.0-1.el7            centos-sclo-rh 1.1 M
 scl-utils-build               x86_64 20130529-19.el7      base            18 k

Transaction Summary
================================================================================
Install  1 Package (+12 Dependent packages)

Total download size: 14 M
Installed size: 55 M
Is this ok [y/d/N]: y
Downloading packages:
(1/13): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm   |  81 kB   00:00   
(2/13): python-srpm-macros-3-32.el7.noarch.rpm             | 8.4 kB   00:00   
warning: /var/cache/yum/x86_64/7/centos-sclo-rh/packages/rh-python36-python-3.6.3-7.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f2ee9d55: NOKEY
Public key for rh-python36-python-3.6.3-7.el7.x86_64.rpm is not installed
(3/13): rh-python36-python-3.6.3-7.el7.x86_64.rpm          |  55 kB   00:00   
(4/13): rh-python36-2.0-1.el7.x86_64.rpm                   | 2.7 kB   00:00   
(5/13): dwz-0.11-3.el7.x86_64.rpm                          |  99 kB   00:01   
(6/13): rh-python36-python-libs-3.6.3-7.el7.x86_64.rpm     | 7.5 MB   00:02   
(7/13): rh-python36-python-virtualenv-15.1.0-2.el7.noarch. | 1.8 MB   00:00   
(8/13): rh-python36-runtime-2.0-1.el7.x86_64.rpm           | 1.1 MB   00:00   
(9/13): scl-utils-build-20130529-19.el7.x86_64.rpm         |  18 kB   00:00   
(10/13): rh-python36-python-pip-9.0.1-2.el7.noarch.rpm     | 1.7 MB   00:03   
(11/13): perl-srpm-macros-1-8.el7.noarch.rpm               | 4.6 kB   00:04   
(12/13): rh-python36-python-setuptools-36.5.0-1.el7.noarch | 566 kB   00:03   
(13/13): rh-python36-python-devel-3.6.3-7.el7.x86_64.rpm   | 841 kB   00:05   
--------------------------------------------------------------------------------
Total                                              2.2 MB/s |  14 MB  00:06   
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
Importing GPG key 0xF2EE9D55:
 Userid     : "CentOS SoftwareCollections SIG (https://wiki.centos.org/SpecialInterestGroup/SCLo) <security@centos.org>"
 Fingerprint: c4db d535 b1fb ba14 f8ba 64a8 4eb8 4e71 f2ee 9d55
 Package    : centos-release-scl-rh-2-3.el7.centos.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-SCLo
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : rh-python36-runtime-2.0-1.el7.x86_64                        1/13
  Installing : rh-python36-python-libs-3.6.3-7.el7.x86_64                  2/13
  Installing : rh-python36-python-3.6.3-7.el7.x86_64                       3/13
  Installing : rh-python36-python-setuptools-36.5.0-1.el7.noarch           4/13
  Installing : rh-python36-python-pip-9.0.1-2.el7.noarch                   5/13
  Installing : python-srpm-macros-3-32.el7.noarch                          6/13
  Installing : perl-srpm-macros-1-8.el7.noarch                             7/13
  Installing : dwz-0.11-3.el7.x86_64                                       8/13
  Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch                9/13
  Installing : scl-utils-build-20130529-19.el7.x86_64                     10/13
  Installing : rh-python36-python-devel-3.6.3-7.el7.x86_64                11/13
  Installing : rh-python36-python-virtualenv-15.1.0-2.el7.noarch          12/13
  Installing : rh-python36-2.0-1.el7.x86_64                               13/13
  Verifying  : rh-python36-runtime-2.0-1.el7.x86_64                        1/13
  Verifying  : rh-python36-python-libs-3.6.3-7.el7.x86_64                  2/13
  Verifying  : rh-python36-python-3.6.3-7.el7.x86_64                       3/13
  Verifying  : dwz-0.11-3.el7.x86_64                                       4/13
  Verifying  : rh-python36-python-virtualenv-15.1.0-2.el7.noarch           5/13
  Verifying  : perl-srpm-macros-1-8.el7.noarch                             6/13
  Verifying  : rh-python36-2.0-1.el7.x86_64                                7/13
  Verifying  : rh-python36-python-devel-3.6.3-7.el7.x86_64                 8/13
  Verifying  : rh-python36-python-pip-9.0.1-2.el7.noarch                   9/13
  Verifying  : redhat-rpm-config-9.1.0-88.el7.centos.noarch               10/13
  Verifying  : rh-python36-python-setuptools-36.5.0-1.el7.noarch          11/13
  Verifying  : python-srpm-macros-3-32.el7.noarch                         12/13
  Verifying  : scl-utils-build-20130529-19.el7.x86_64                     13/13

Installed:
  rh-python36.x86_64 0:2.0-1.el7                                             

Dependency Installed:
  dwz.x86_64 0:0.11-3.el7                                                     
  perl-srpm-macros.noarch 0:1-8.el7                                           
  python-srpm-macros.noarch 0:3-32.el7                                       
  redhat-rpm-config.noarch 0:9.1.0-88.el7.centos                             
  rh-python36-python.x86_64 0:3.6.3-7.el7                                     
  rh-python36-python-devel.x86_64 0:3.6.3-7.el7                               
  rh-python36-python-libs.x86_64 0:3.6.3-7.el7                               
  rh-python36-python-pip.noarch 0:9.0.1-2.el7                                 
  rh-python36-python-setuptools.noarch 0:36.5.0-1.el7                         
  rh-python36-python-virtualenv.noarch 0:15.1.0-2.el7                         
  rh-python36-runtime.x86_64 0:2.0-1.el7                                     
  scl-utils-build.x86_64 0:20130529-19.el7                                   

Complete!
[root@worker ~]#

[root@worker ~]# mkdir my_django_app
[root@worker ~]# cd my_django_app
[root@worker my_django_app]# scl enable rh-python36 bash
[root@worker my_django_app]# python3 -m venv venv
[root@worker my_django_app]# source venv/bin/activate
(venv) [root@worker my_django_app]# 
(venv) [root@worker my_django_app]# pip install django
Collecting django
  Downloading https://files.pythonhosted.org/packages/a0/36/463632a2e9161a7e713488d719a280e8cb0c7e3a66ed32a32e801891caae/Django-2.2.7-py3-none-any.whl (7.5MB)
    100% |████████████████████████████████| 7.5MB 114kB/s 
Collecting pytz (from django)
  Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB)
    100% |████████████████████████████████| 512kB 491kB/s 
Collecting sqlparse (from django)
  Downloading https://files.pythonhosted.org/packages/ef/53/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7/sqlparse-0.3.0-py2.py3-none-any.whl
Installing collected packages: pytz, sqlparse, django
Successfully installed django-2.2.7 pytz-2019.3 sqlparse-0.3.0
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) [root@worker my_django_app]# 

(venv) [root@worker my_django_app]# python -m django --version
2.2.7
(venv) [root@worker my_django_app]# 
(venv) [root@worker my_django_app]# pip install tree
Collecting tree
  Downloading https://files.pythonhosted.org/packages/29/3f/63cbed2909786f0e5ac30a4ae5791ad597c6b5fec7167e161c55bba511ce/Tree-0.2.4.tar.gz
Collecting Pillow (from tree)
  Downloading https://files.pythonhosted.org/packages/10/5c/0e94e689de2476c4c5e644a3bd223a1c1b9e2bdb7c510191750be74fa786/Pillow-6.2.1-cp36-cp36m-manylinux1_x86_64.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 445kB/s 
Collecting svgwrite (from tree)
  Downloading https://files.pythonhosted.org/packages/4f/2e/f36cfec1da6162055b884e6366074cff18475a9538559ceae0c0bc58e186/svgwrite-1.3.1-py2.py3-none-any.whl (67kB)
    100% |████████████████████████████████| 71kB 2.2MB/s 
Requirement already satisfied: setuptools in ./venv/lib/python3.6/site-packages (from tree)
Collecting click (from tree)
  Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
    100% |████████████████████████████████| 81kB 2.6MB/s 
Collecting pyparsing>=2.0.1 (from svgwrite->tree)
  Downloading https://files.pythonhosted.org/packages/c0/0c/fc2e007d9a992d997f04a80125b0f183da7fb554f1de701bbb70a8e7d479/pyparsing-2.4.5-py2.py3-none-any.whl (67kB)
    100% |████████████████████████████████| 71kB 3.7MB/s 
Installing collected packages: Pillow, pyparsing, svgwrite, click, tree
  Running setup.py install for tree ... done
Successfully installed Pillow-6.2.1 click-7.0 pyparsing-2.4.5 svgwrite-1.3.1 tree-0.2.4
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(venv) [root@worker my_django_app]# 

venv) [root@worker my_django_app]# cd mydjango
(venv) [root@worker mydjango]#


django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).
(venv) [root@worker mydjango]# yum install http://www6.atomicorp.com/channels/atomic/centos/7/x86_64/RPMS/atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64.rpm
Loaded plugins: fastestmirror, langpacks
atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64.rpm          | 427 kB     00:00     
Examining /var/tmp/yum-root-Tn1ZA0/atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64.rpm: atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64
Marking /var/tmp/yum-root-Tn1ZA0/atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package atomic-sqlite-sqlite.x86_64 0:3.8.5-3.el7.art will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package
      Arch   Version         Repository                                    Size
================================================================================
Installing:
 atomic-sqlite-sqlite
      x86_64 3.8.5-3.el7.art /atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64 862 k

Transaction Summary
================================================================================
Install  1 Package

Total size: 862 k
Installed size: 862 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test

Transaction test succeeded
Running transaction
  Installing : atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64                  1/1 
  Verifying  : atomic-sqlite-sqlite-3.8.5-3.el7.art.x86_64                  1/1 

Installed:
  atomic-sqlite-sqlite.x86_64 0:3.8.5-3.el7.art                                 

Complete!
(venv) [root@worker mydjango]# 
\
(venv) [root@worker mydjango]# sqlite3 --version
3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668
(venv) [root@worker mydjango]# pip install Django==2.1.*
Collecting Django==2.1.*
  Downloading https://files.pythonhosted.org/packages/cd/53/5b415cf77c091e0011b0c2681c27fb4f63ed6d8cc4f087189090042d4b6d/Django-2.1.14-py3-none-any.whl (7.3MB)
     |████████████████████████████████| 7.3MB 2.6MB/s 
Requirement already satisfied: pytz in /root/my_django_app/venv/lib/python3.6/site-packages (from Django==2.1.*) (2019.3)
Installing collected packages: Django
  Found existing installation: Django 2.2.7
    Uninstalling Django-2.2.7:
      Successfully uninstalled Django-2.2.7
Successfully installed Django-2.1.14
(venv) [root@worker mydjango]# sqlite3 --version
3.7.17 2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668
(venv) [root@worker mydjango]# python manage.py migrate
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying sessions.0001_initial... OK
(venv) [root@worker mydjango]# 

(venv) [root@worker mydjango]# python manage.py createsuperuser
Username: admin
Email address: root@localhost
Password:kiran@123 
Password (again): kiran@123
Superuser created successfully.
(venv) [root@worker mydjango]# 

(venv) [root@worker mydjango]#deactivate after work

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster