{"id":3918,"date":"2019-05-10T03:09:27","date_gmt":"2019-05-10T03:09:27","guid":{"rendered":"http:\/\/myprojects.advchaweb.com\/?p=3918"},"modified":"2019-05-11T07:05:17","modified_gmt":"2019-05-11T07:05:17","slug":"install-django-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/05\/10\/install-django-on-ubuntu-16-04\/","title":{"rendered":"Install Django on Ubuntu 16.04"},"content":{"rendered":"<p>Ref: https:\/\/tecadmin.net\/install-django-on-ubuntu\/<\/p>\n<p>Check python3 (no need python2) version and pip3 version<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ python3 -V\r\nPython 3.5.2\r\nteddy@teddy:~$ python -V\r\nPython 2.7.12\r\nteddy@teddy:~$ pip3 -V\r\npip 9.0.1 from \/home\/teddy\/.local\/lib\/python3.5\/site-packages (python 3.5)<\/pre>\n<p>I need to upgrade pip with this command (must with sudo)<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ sudo pip3 install --upgrade pip<\/pre>\n<p>but when I checked the newest installed pip, I got this<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ pip3 -V\r\nbash: \/home\/teddy\/.local\/bin\/pip3: No such file or directory\r\nteddy@teddy:~$ pip -V\r\nbash: \/home\/teddy\/.local\/bin\/pip: No such file or directory<\/pre>\n<p>SOLUTION: https:\/\/askubuntu.com\/questions\/1034018\/problem-in-installing-pip-in-ubuntu-16-04<br \/>\nSo I need to do this after the upgrade:<\/p>\n<pre class=\"lang:default decode:true\">teddy@teddy:~$ type pip\r\npip is hashed (\/home\/teddy\/.local\/bin\/pip)\r\nteddy@teddy:~$ type pip3\r\npip3 is hashed (\/home\/teddy\/.local\/bin\/pip3)\r\nteddy@teddy:~$ hash -d pip\r\nteddy@teddy:~$ pip -V\r\npip 19.1.1 from \/usr\/local\/lib\/python3.5\/dist-packages\/pip (python 3.5)\r\nteddy@teddy:~$ pip3 -V\r\nbash: \/home\/teddy\/.local\/bin\/pip3: No such file or directory\r\nteddy@teddy:~$ hash -d pip3\r\nteddy@teddy:~$ pip3 -V\r\npip 19.1.1 from \/usr\/local\/lib\/python3.5\/dist-packages\/pip (python 3.5)\r\nteddy@teddy:~$ type pip3\r\npip3 is hashed (\/usr\/local\/bin\/pip3)\r\nteddy@teddy:~$ pip3 -V\r\npip 19.1.1 from \/usr\/local\/lib\/python3.5\/dist-packages\/pip (python 3.5)<\/pre>\n<p>Install Django (NO) &#8212; USE VIRTUALENV INSTEAD (http:\/\/myprojects.advchaweb.com\/index.php\/2018\/01\/24\/ubuntu-16-04-3-installation-problem-and-solution\/)<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ pip3 install Django\r\nCollecting Django\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/b1\/1d\/2476110614367adfb079a9bc718621f9fc8351e9214e1750cae1832d4090\/Django-2.2.1-py3-none-any.whl\r\nCollecting pytz (from Django)\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/3d\/73\/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6\/pytz-2019.1-py2.py3-none-any.whl\r\nCollecting sqlparse (from Django)\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/ef\/53\/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7\/sqlparse-0.3.0-py2.py3-none-any.whl\r\nInstalling collected packages: pytz, sqlparse, Django\r\nERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '\/usr\/local\/lib\/python3.5\/dist-packages\/pytz-2019.1.dist-info'\r\nConsider using the `--user` option or check the permissions.<\/pre>\n<p>USE VIRTUALENV<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ virtualenv --version\r\n15.1.0\r\nteddy@teddy:~$ cd Documents\/python\/django-apps\/\r\nteddy@teddy:~\/Documents\/python\/django-apps$ virtualenv env\r\nUsing base prefix '\/usr'\r\nNew python executable in \/home\/teddy\/Documents\/python\/django-apps\/env\/bin\/python3\r\nNot overwriting existing python script \/home\/teddy\/Documents\/python\/django-apps\/env\/bin\/python (you must use \/home\/teddy\/Documents\/python\/django-apps\/env\/bin\/python3)\r\nInstalling setuptools, pip, wheel...done.\r\nteddy@teddy:~\/Documents\/python\/django-apps$ . env\/bin\/activate\r\n(env) teddy@teddy:~\/Documents\/python\/django-apps$ django-admin --version\r\n2.0.1<\/pre>\n<p>Go to &#8216;djangotest&#8217; directory and run migration if exist<\/p>\n<pre class=\"lang:default decode:true\">(env) teddy@teddy:~\/Documents\/python\/django-apps$ cd djangotest\/\r\n(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ python3 manage.py runserver localhost:8000\r\nPerforming system checks...\r\n\r\nSystem check identified no issues (0 silenced).\r\n\r\nYou have 14 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.\r\nRun 'python manage.py migrate' to apply them.\r\n\r\nMay 10, 2019 - 03:35:06\r\nDjango version 2.0.1, using settings 'djangotest.settings'\r\nStarting development server at http:\/\/localhost:8000\/\r\nQuit the server with CONTROL-C.\r\n(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ python3 manage.py migrate\r\nOperations to perform:\r\n  Apply all migrations: admin, auth, contenttypes, sessions\r\nRunning migrations:\r\n  Applying contenttypes.0001_initial... OK\r\n  Applying auth.0001_initial... OK\r\n  Applying admin.0001_initial... OK\r\n  Applying admin.0002_logentry_remove_auto_add... OK\r\n  Applying contenttypes.0002_remove_content_type_name... OK\r\n  Applying auth.0002_alter_permission_name_max_length... OK\r\n  Applying auth.0003_alter_user_email_max_length... OK\r\n  Applying auth.0004_alter_user_username_opts... OK\r\n  Applying auth.0005_alter_user_last_login_null... OK\r\n  Applying auth.0006_require_contenttypes_0002... OK\r\n  Applying auth.0007_alter_validators_add_error_messages... OK\r\n  Applying auth.0008_alter_user_username_max_length... OK\r\n  Applying auth.0009_alter_user_last_name_max_length... OK\r\n  Applying sessions.0001_initial... OK<\/pre>\n<p>RUN SERVER<\/p>\n<pre class=\"lang:default decode:true\">(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ python3 manage.py runserver localhost:8000<\/pre>\n<p>OPEN IT ON YOUR BROWSER: http:\/\/localhost:8000\/<br \/>\n<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3923\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0-1024x478.jpg\" alt=\"\" width=\"840\" height=\"392\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0-1024x478.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0-300x140.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0-768x359.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0-1200x560.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django.2.0.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>LOGIN ADMIN<br \/>\nhttp:\/\/localhost:8000\/admin\/login\/?next=\/admin\/<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3925\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin-1024x478.jpg\" alt=\"\" width=\"840\" height=\"392\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin-1024x478.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin-300x140.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin-768x359.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin-1200x560.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Log-in-Django-site-admin.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>CREATE SUPERUSER FOR ADMIN<\/p>\n<pre class=\"lang:default decode:true\">(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ python3 manage.py createsuperuser\r\nUsername (leave blank to use 'teddy'): admin\r\nEmail address: advcha@yahoo.com\r\nPassword: \r\nPassword (again): \r\nThis password is too short. It must contain at least 8 characters.\r\nThis password is too common.\r\nPassword: \r\nPassword (again): \r\nSuperuser created successfully.\r\n(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ python3 manage.py runserver localhost:8000<\/pre>\n<p>so superuser:<br \/>\nusername: admin<br \/>\npassword: admin123<\/p>\n<p>THEN LOGIN TO ADMIN AGAIN WITH THIS SUPERUSER ACCOUNT. HERE IS THE ADMIN DASHBOARD<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3928\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin-1024x478.jpg\" alt=\"\" width=\"840\" height=\"392\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin-1024x478.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin-300x140.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin-768x359.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin-1200x560.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Site-administration-Django-site-admin.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>DEACTIVATE<\/p>\n<pre class=\"lang:default decode:true \">(env) teddy@teddy:~\/Documents\/python\/django-apps\/djangotest$ deactivate\r\nteddy@teddy:~\/Documents\/python\/django-apps\/djangotest$<\/pre>\n<p>&nbsp;<\/p>\n<p>INSTALL NEWEST DJANGO (VERSION 2.2) WITH VIRTUALENV &#8216;django2.2&#8217;<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/python\/django-apps$ virtualenv django2.2\r\nUsing base prefix '\/usr'\r\nNew python executable in \/home\/teddy\/Documents\/python\/django-apps\/django2.2\/bin\/python3\r\nAlso creating executable in \/home\/teddy\/Documents\/python\/django-apps\/django2.2\/bin\/python\r\nInstalling setuptools, pip, wheel...done.\r\nteddy@teddy:~\/Documents\/python\/django-apps$ . django2.2\/bin\/activate\r\n(django2.2) teddy@teddy:~\/Documents\/python\/django-apps$ pip3 install Django\r\nCollecting Django\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/b1\/1d\/2476110614367adfb079a9bc718621f9fc8351e9214e1750cae1832d4090\/Django-2.2.1-py3-none-any.whl\r\nCollecting pytz (from Django)\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/3d\/73\/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6\/pytz-2019.1-py2.py3-none-any.whl\r\nCollecting sqlparse (from Django)\r\n  Using cached https:\/\/files.pythonhosted.org\/packages\/ef\/53\/900f7d2a54557c6a37886585a91336520e5539e3ae2423ff1102daf4f3a7\/sqlparse-0.3.0-py2.py3-none-any.whl\r\nInstalling collected packages: pytz, sqlparse, Django\r\nSuccessfully installed Django-2.2.1 pytz-2019.1 sqlparse-0.3.0<\/pre>\n<p>CHECK THE DJANGO VERSION<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps$ django-admin --version\r\n2.2.1<\/pre>\n<p>CREATE DJANGO APP PROJECT &#8216;django_app&#8217;<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps$ django-admin startproject django_app<\/pre>\n<p>Goto the project directory and migrate<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ python3 manage.py migrate\r\nOperations to perform:\r\n  Apply all migrations: admin, auth, contenttypes, sessions\r\nRunning migrations:\r\n  Applying contenttypes.0001_initial... OK\r\n  Applying auth.0001_initial... OK\r\n  Applying admin.0001_initial... OK\r\n  Applying admin.0002_logentry_remove_auto_add... OK\r\n  Applying admin.0003_logentry_add_action_flag_choices... OK\r\n  Applying contenttypes.0002_remove_content_type_name... OK\r\n  Applying auth.0002_alter_permission_name_max_length... OK\r\n  Applying auth.0003_alter_user_email_max_length... OK\r\n  Applying auth.0004_alter_user_username_opts... OK\r\n  Applying auth.0005_alter_user_last_login_null... OK\r\n  Applying auth.0006_require_contenttypes_0002... OK\r\n  Applying auth.0007_alter_validators_add_error_messages... OK\r\n  Applying auth.0008_alter_user_username_max_length... OK\r\n  Applying auth.0009_alter_user_last_name_max_length... OK\r\n  Applying auth.0010_alter_group_name_max_length... OK\r\n  Applying auth.0011_update_proxy_permissions... OK\r\n  Applying sessions.0001_initial... OK<\/pre>\n<p>CREATE SUPERUSER ACCOUNT<\/p>\n<pre class=\"lang:default decode:true\">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ python3 manage.py createsuperuser\r\nUsername (leave blank to use 'teddy'): admin\r\nEmail address: advcha@yahoo.com\r\nPassword: \r\nPassword (again): \r\nThe password is too similar to the username.\r\nThis password is too common.\r\nBypass password validation and create user anyway? [y\/N]: y\r\nSuperuser created successfully.<\/pre>\n<p>so superuser:<br \/>\nusername: admin<br \/>\npassword: admin123<\/p>\n<p>RUN DJANGO SERVER<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ python3 manage.py runserver localhost:8000<\/pre>\n<p>OPEN: http:\/\/localhost:8000\/<a href=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3931\" src=\"http:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2-1024x478.jpg\" alt=\"\" width=\"840\" height=\"392\" srcset=\"https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2-1024x478.jpg 1024w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2-300x140.jpg 300w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2-768x359.jpg 768w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2-1200x560.jpg 1200w, https:\/\/myprojects.advchaweb.com\/wp-content\/uploads\/2019\/05\/Django2.2.jpg 1351w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a>THE ADMIN (http:\/\/localhost:8000\/admin\/) HAS SAME ACCOUNT AND DISPLAY<\/p>\n<p>CREATE POLLS APP<br \/>\nref: https:\/\/docs.djangoproject.com\/en\/2.2\/intro\/tutorial01\/<br \/>\nGo to the &#8216;django_app&#8217; directory:<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~$ cd Documents\/python\/django-apps\/<\/pre>\n<p>activate the virtualenv &#8216;django2.2&#8217; then go to the project directory<\/p>\n<pre class=\"lang:default decode:true \">teddy@teddy:~\/Documents\/python\/django-apps$ . django2.2\/bin\/activate\r\n(django2.2) teddy@teddy:~\/Documents\/python\/django-apps$ cd django_app\/<\/pre>\n<p>create &#8216;polls&#8217; app<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ python3 manage.py startapp polls\r\n(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ ls\r\ndb.sqlite3  django_app  manage.py  polls<\/pre>\n<p>That\u2019ll create a directory\u00a0polls, which is laid out like this:<\/p>\n<pre class=\"lang:default decode:true \">polls\/\r\n    __init__.py\r\n    admin.py\r\n    apps.py\r\n    migrations\/\r\n        __init__.py\r\n    models.py\r\n    tests.py\r\n    views.py<\/pre>\n<p>Write your first view<br \/>\nLet\u2019s write the first view. Open the file\u00a0polls\/views.py\u00a0and put the following Python code in it:<\/p>\n<pre class=\"lang:default decode:true \">from django.shortcuts import render\r\nfrom django.http import HttpResponse\r\n# Create your views here.\r\ndef index(request):\r\n    return HttpResponse(\"Hello world, You're at the polls index!\")\r\n<\/pre>\n<p>This is the simplest view possible in Django. To call the view, we need to map it to a URL &#8211; and for this we need a URLconf.<\/p>\n<p>To create a URLconf in the polls directory, create a file called urls.py. Then Open the file polls\/urls.py<\/p>\n<pre class=\"lang:default decode:true \">from django.urls import path\r\nfrom . import views\r\n\r\nurlpatterns = [\r\n    path('', views.index, name='index'),\r\n]\r\n<\/pre>\n<p>The next step is to point the root URLconf at the polls.urls module. In django_app\/urls.py, add an import for django.urls.include and insert an include() in the urlpatterns list, so you have:<\/p>\n<pre class=\"lang:default decode:true \">...\r\nfrom django.contrib import admin\r\nfrom django.urls import include, path\r\n\r\nurlpatterns = [\r\n    path('polls\/', include('polls.urls')),\r\n    path('admin\/', admin.site.urls),\r\n]<\/pre>\n<p>Then run the server<\/p>\n<pre class=\"lang:default decode:true \">(django2.2) teddy@teddy:~\/Documents\/python\/django-apps\/django_app$ python3 manage.py runserver<\/pre>\n<p>open: http:\/\/localhost:8000\/polls\/<br \/>\nNOTE: BUT I GOT AN ERROR IF I OPEN http:\/\/localhost:8000\/<\/p>\n<pre class=\"lang:default decode:true \">Page not found (404)\r\nRequest Method:\tGET\r\nRequest URL:\thttp:\/\/localhost:8000\/\r\nUsing the URLconf defined in django_app.urls, Django tried these URL patterns, in this order:\r\n\r\npolls\/\r\nadmin\/\r\nThe empty path didn't match any of these.\r\n\r\nYou're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ref: https:\/\/tecadmin.net\/install-django-on-ubuntu\/ Check python3 (no need python2) version and pip3 version teddy@teddy:~$ python3 -V Python 3.5.2 teddy@teddy:~$ python -V Python 2.7.12 teddy@teddy:~$ pip3 -V pip 9.0.1 from \/home\/teddy\/.local\/lib\/python3.5\/site-packages (python 3.5) I need to upgrade pip with this command (must with sudo) teddy@teddy:~$ sudo pip3 install &#8211;upgrade pip but when I checked the newest installed pip, &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2019\/05\/10\/install-django-on-ubuntu-16-04\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Django on Ubuntu 16.04&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,19],"tags":[],"class_list":["post-3918","post","type-post","status-publish","format-standard","hentry","category-django","category-python"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/3918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=3918"}],"version-history":[{"count":11,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/3918\/revisions"}],"predecessor-version":[{"id":3934,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/3918\/revisions\/3934"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=3918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=3918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=3918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}