[
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": ".gitignore",
    "content": "\n.DS_Store\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2021 Very Academy\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/README.md",
    "content": "# YT-Django-Celery-Series-Intro-Install-Run-Task\n \n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/__init__.py",
    "content": ""
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/admin.py",
    "content": "from django.contrib import admin\n\n# Register your models here.\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass App1Config(AppConfig):\n    name = 'app1'\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/models.py",
    "content": "from django.db import models\n\n# Create your models here.\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/tasks.py",
    "content": "from __future__ import absolute_import, unicode_literals\n\nfrom celery import shared_task\n\n@shared_task\ndef add(x, y):\n    return x + y\n\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/tests.py",
    "content": "from django.test import TestCase\n\n# Create your tests here.\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/app1/views.py",
    "content": "from django.shortcuts import render\n\n# Create your views here.\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/command.txt",
    "content": "Commands Used\n################\n# Install celery\npip install celery\n# Install RabbitMQ (Ubuntu Linux 20.04LTS)\nsudo apt-get install rabbitmq-server\n# Run Celery\ncelery -A NAMEOFINSTANCE worker --loglevel=info\nwe used\ncelery -A proj worker --loglevel=info\n(If on Windows) celery -A proj worker -l info --pool=solo\n#Run Task\npy manage.py shell\nfrom app1.tasks import add\nadd.delay(2,2)\n\n\n\n\ndocker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 8080:15672 rabbitmq:3-management"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/__init__.py",
    "content": ""
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/asgi.py",
    "content": "\"\"\"\nASGI config for proj project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/celery.py",
    "content": "from __future__ import absolute_import, unicode_literals\n\nimport os\n\nfrom celery import Celery\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')\n\napp = Celery('proj')\n\napp.config_from_object('django.conf:settings', namespace='CELERY')\n\napp.autodiscover_tasks()\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/settings.py",
    "content": "\"\"\"\nDjango settings for proj project.\n\nGenerated by 'django-admin startproject' using Django 3.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve(strict=True).parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'sqehio$00h@b5$t3!@a*e@opjdync*rx409oemuukramxywqa3'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'app1'\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'proj.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'proj.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n\nCELERY_BROKER_URL = 'amqp://localhost'"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/urls.py",
    "content": "\"\"\"proj URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n]\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/proj/wsgi.py",
    "content": "\"\"\"\nWSGI config for proj project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proj.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-07 RabbitMQ with Celery Quick Start Guide/requirements.txt",
    "content": "amqp==5.0.6\nasgiref==3.3.4\nbilliard==3.6.4.0\ncelery==5.0.5\nclick==7.1.2\nclick-didyoumean==0.0.3\nclick-plugins==1.1.1\nclick-repl==0.1.6\nDjango==3.2\nkombu==5.0.2\nprompt-toolkit==3.0.18\npytz==2021.1\nsix==1.15.0\nsqlparse==0.4.1\nvine==5.0.0\nwcwidth==0.2.5\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/commands.txt",
    "content": "docker-compose up\n\ndocker ps\ndocker inspect xyz\n\npip install psycopg2\npip freeze > requirements.txt"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.2.2.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.2/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'django-insecure-#=rdn+&p#+#o@+pdy%uf-icgxm)5e)n2ujop&c6vm#y#m-1r0s'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.2/ref/settings/#databases\n\n# DATABASES = {\n#     'default': {\n#         'ENGINE': 'django.db.backends.sqlite3',\n#         'NAME': BASE_DIR / 'db.sqlite3',\n#     }\n# }\n\nDATABASES = {\n   'default': {\n        'ENGINE': 'django.db.backends.postgresql_psycopg2',\n        'NAME': 'test_db',\n        'USER': 'root',\n        'PASSWORD': 'root',\n        'HOST': '127.0.0.1',\n        'PORT': '5432',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.2/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.2/howto/static-files/\n\nSTATIC_URL = '/static/'\n\n# Default primary key field type\n# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field\n\nDEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.2/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n]\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/docker-compose.yml",
    "content": "version: '3.1'\n\nservices:\n\n  db:\n    container_name: postgresql_db\n    image: postgres\n    # automatically restarts the container - Docker daemon on restart or \n    # the container itself is manually restarted\n    restart: always \n\n    volumes:\n      - ./data/db:/var/lib/postgresql/data\n\n    environment:\n      POSTGRES_USER: root\n      POSTGRES_PASSWORD: root\n      POSTGRES_DB: test_db\n    ports:\n      - \"5432:5432\"\n    networks:\n      app_net:\n        ipv4_address: 192.168.0.2  \n\n  pgadmin:\n    container_name: pgadmin4\n    image: dpage/pgadmin4\n    restart: always\n\n    volumes:\n      - ./data/pgadmin-data:/var/lib/pgadmin\n\n    environment:\n      PGADMIN_DEFAULT_EMAIL: root@root.com\n      PGADMIN_DEFAULT_PASSWORD: root\n      # PGADMIN_LISTEN_PORT = 80\n    ports:\n      - \"5050:80\"\n    networks:\n      app_net:\n        ipv4_address: 192.168.0.3\n    \nnetworks:\n  app_net:\n    ipam:\n      driver: default\n      config:\n        - subnet: \"192.168.0.0/24\"\n          gateway: 192.168.0.1"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-08 PostgreSQL with pgAdmin and Custom Network Config/requirements.txt",
    "content": "asgiref==3.3.4\nDjango==3.2.2\npsycopg2==2.8.6\npytz==2021.1\nsqlparse==0.4.1\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/Dockerfile",
    "content": "FROM python:3.8-slim-buster\n\nWORKDIR /app\n\nCOPY requirements.txt requirements.txt\nRUN pip3 install -r requirements.txt\n\nCOPY . .\n\nCMD [ \"python3\", \"manage.py\", \"runserver\", \"0.0.0.0:8000\"]"
  },
  {
    "path": "Part-1 Dockerize a Django Application/commands.txt",
    "content": "docker build --tag python-django .\ndocker run --publish 8000:8000 python-django"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'fz6+lw%5*b^&j8&wz5vb-xi-+2^$klpagds6r(cag^8*@xno83'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'core'\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/templates/index.html",
    "content": "Hello Docker"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\n\nfrom . import views\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n    path('', views.home)\n]\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/views.py",
    "content": "from django.shortcuts import render\n\ndef home(request):\n    return render(request, 'index.html')"
  },
  {
    "path": "Part-1 Dockerize a Django Application/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/db.sqlite3",
    "content": ""
  },
  {
    "path": "Part-1 Dockerize a Django Application/dockerignore",
    "content": "venv"
  },
  {
    "path": "Part-1 Dockerize a Django Application/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-1 Dockerize a Django Application/requirements.txt",
    "content": "asgiref==3.3.1\nDjango==3.1.7\npytz==2021.1\nsqlparse==0.4.1\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/Dockerfile",
    "content": "FROM python:3.8-slim-buster\nENV PYTHONUNBUFFERED=1\nWORKDIR /django\nCOPY requirements.txt requirements.txt\nRUN pip3 install -r requirements.txt\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/commands.txt",
    "content": "Part#1\ndocker build --tag python-django .\ndocker run --publish 8000:8000 python-django\nPart#2\ndocker-compose build\ndocker-compose run --rm app django-admin startproject core.\ndocker-compose up\n\n\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'jt-qh9v4+)+4e@3wa05@4pbkw@f$97rzyezckbn6v$67jcqu-b'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'core'\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/templates/index.html",
    "content": "Hello Docker"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/urls.py",
    "content": "from django.contrib import admin\nfrom django.urls import path\n\nfrom . import views\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n    path('', views.home)\n]\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/views.py",
    "content": "from django.shortcuts import render\n\ndef home(request):\n    return render(request, 'index.html')"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/db.sqlite3",
    "content": ""
  },
  {
    "path": "Part-2 Build and Start Django in a Container/docker-compose.yml",
    "content": "version: \"3.8\"\nservices:\n  app:\n    build: .\n    volumes:\n      - .:/django\n    ports:\n      - 8000:8000\n    image: app:django\n    container_name: django_container\n    command: python manage.py runserver 0.0.0.0:8000\n\n\n\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-2 Build and Start Django in a Container/requirements.txt",
    "content": "asgiref==3.3.1\nDjango==3.1.7\npytz==2021.1\nsqlparse==0.4.1"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/Dockerfile",
    "content": "FROM python:3.8\nENV PYTHONUNBUFFERED=1\nWORKDIR /django\nCOPY requirements.txt requirements.txt\nRUN pip3 install -r requirements.txt\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/commands.txt",
    "content": "Part#1\ndocker build --tag python-django .\ndocker run --publish 8000:8000 python-django\nPart#2\ndocker-compose build\ndocker-compose run --rm app django-admin startproject core .\ndocker-compose up\nPart#3\ndocker-compose build\ndocker-compose run --rm app django-admin startproject core .\ndocker-compose up\ndocker exec -it django_container /bin/bash\n\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 't^!+3uz%cbs$xu!qpe=6&%h^#$ydrps5=r8u_qwe!lsp4-c74e'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\n# DATABASES = {\n#     'default': {\n#         'ENGINE': 'django.db.backends.postgresql',\n#         'NAME': 'postgres',\n#         'USER': 'postgres',\n#         'PASSWORD': 'postgres',\n#         'HOST': 'db',\n#         'PORT': 5432,\n#     }\n# }\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.mysql',\n        'NAME': 'django-app-db',\n        'USER': 'root',\n        'PASSWORD': '',\n        'HOST': 'db',\n        'PORT': '3306',\n    }\n}\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n]\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/docker-compose.yml",
    "content": "version: \"3.8\"\nservices:\n  app:\n    build: .\n    volumes:\n      - .:/django\n    ports:\n      - 8000:8000\n    image: app:django\n    container_name: django_container\n    command: python manage.py runserver 0.0.0.0:8000\n    depends_on:\n      - db \n  db:\n    # image: postgres\n    # volumes:\n    #   - ./data/db:/var/lib/postgresql/data\n    # environment:\n    #   - POSTGRES_DB=postgres\n    #   - POSTGRES_USER=postgres\n    #   - POSTGRES_PASSWORD=postgres\n    # container_name: postgres_db\n    image: mysql:5.7\n    environment:\n      MYSQL_DATABASE: 'django-app-db'\n      MYSQL_ALLOW_EMPTY_PASSWORD: 'true'\n    volumes:\n      - ./data/mysql/db:/var/lib/mysql\n\n\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-3 Containerize Postgres or MySQL/requirements.txt",
    "content": "asgiref==3.3.1\nDjango==3.1.7\npytz==2021.1\nsqlparse==0.4.1\npsycopg2-binary>=2.8\nmysqlclient>=2.0"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/Dockerfile",
    "content": "FROM python:3.8-alpine\nENV PYTHONUNBUFFERED=1\nRUN apk update && apk add postgresql-dev gcc python3-dev musl-dev\nWORKDIR /django\nCOPY requirements.txt requirements.txt\nRUN pip3 install -r requirements.txt\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/commands.txt",
    "content": "Part#1\ndocker build --tag python-django .\ndocker run --publish 8000:8000 python-django\nPart#2\ndocker-compose build\ndocker-compose run --rm app django-admin startproject core .\ndocker-compose up\nPart#3\ndocker-compose build\ndocker-compose run --rm app django-admin startproject core .\ndocker-compose up\ndocker exec -it django_container /bin/bash\nPart#4\ndocker-compose run django_app sh -c \"django-admin startapp newapp .\"\ndocker exec -it django_app sh\n\n#Run Celery Task\n    python manage.py shell\n    from newapp.tasks import add\n    add.delay(2, 2)\n\nInfo:\nPYTHONUNBUFFERED:\nSetting the non-empty value of PYTHONUNBUFFERED means \nthat the python output is transmitted directly to the \nterminal without being buffered and that allows displaying \nthe application’s output in real-time. \n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/__init__.py",
    "content": "from __future__ import absolute_import, unicode_literals\n\n# This will make sure the app is always imported when\n# Django starts so that shared_task will use this app.\nfrom .celery import app as celery_app\n\n__all__ = ('celery_app',)"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/celery.py",
    "content": "import os\nfrom celery import Celery\n \nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\napp = Celery('core')\napp.config_from_object('django.conf:settings', namespace='CELERY')\napp.autodiscover_tasks()"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.7.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'q&oh8d*y@!ir(bs88&hao2*$g-!0(kn*bh3uh)7v%(wa1s%zc#'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'newapp'\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n\nCELERY_BROKER_URL = \"redis://redis:6379\"\nCELERY_RESULT_BACKEND = \"redis://redis:6379\"\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n]\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/PG_VERSION",
    "content": "13\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/13247",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/13252",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/13257",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/13262",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/1417",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/1418",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2224",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2328",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2336",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2604",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2611",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2613",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2620",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2830",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2832",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2834",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2836",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/2995",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3118",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3256",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3350",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3381",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3429",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3430",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3439",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3466",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3501",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3576",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3596",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/3598",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4143",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4145",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4147",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4149",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4151",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4153",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4155",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4157",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4159",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4161",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4163",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4165",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4167",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4169",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4171",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/4173",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/6102",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/6104",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/6106",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/826",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/1/PG_VERSION",
    "content": "13\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/13247",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/13252",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/13257",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/13262",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/1417",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/1418",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2224",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2328",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2336",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2604",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2611",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2613",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2620",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2830",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2832",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2834",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2836",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/2995",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3118",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3256",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3350",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3381",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3429",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3430",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3439",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3466",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3501",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3576",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3596",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/3598",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4143",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4145",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4147",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4149",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4151",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4153",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4155",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4157",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4159",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4161",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4163",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4165",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4167",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4169",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4171",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/4173",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/6102",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/6104",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/6106",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/826",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13394/PG_VERSION",
    "content": "13\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/13247",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/13252",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/13257",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/13262",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/1417",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/1418",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2224",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2328",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2336",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2604",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2611",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2613",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2620",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2830",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2832",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2834",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2836",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/2995",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3118",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3256",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3350",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3381",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3429",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3430",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3439",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3466",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3501",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3576",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3596",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/3598",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4143",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4145",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4147",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4149",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4151",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4153",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4155",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4157",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4159",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4161",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4163",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4165",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4167",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4169",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4171",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/4173",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/6102",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/6104",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/6106",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/826",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/base/13395/PG_VERSION",
    "content": "13\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/2846",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/2964",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/2966",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/3592",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4060",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4175",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4177",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4181",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4183",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/4185",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/6000",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/global/6100",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/pg_hba.conf",
    "content": "# PostgreSQL Client Authentication Configuration File\n# ===================================================\n#\n# Refer to the \"Client Authentication\" section in the PostgreSQL\n# documentation for a complete description of this file.  A short\n# synopsis follows.\n#\n# This file controls: which hosts are allowed to connect, how clients\n# are authenticated, which PostgreSQL user names they can use, which\n# databases they can access.  Records take one of these forms:\n#\n# local         DATABASE  USER  METHOD  [OPTIONS]\n# host          DATABASE  USER  ADDRESS  METHOD  [OPTIONS]\n# hostssl       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]\n# hostnossl     DATABASE  USER  ADDRESS  METHOD  [OPTIONS]\n# hostgssenc    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]\n# hostnogssenc  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]\n#\n# (The uppercase items must be replaced by actual values.)\n#\n# The first field is the connection type: \"local\" is a Unix-domain\n# socket, \"host\" is either a plain or SSL-encrypted TCP/IP socket,\n# \"hostssl\" is an SSL-encrypted TCP/IP socket, and \"hostnossl\" is a\n# non-SSL TCP/IP socket.  Similarly, \"hostgssenc\" uses a\n# GSSAPI-encrypted TCP/IP socket, while \"hostnogssenc\" uses a\n# non-GSSAPI socket.\n#\n# DATABASE can be \"all\", \"sameuser\", \"samerole\", \"replication\", a\n# database name, or a comma-separated list thereof. The \"all\"\n# keyword does not match \"replication\". Access to replication\n# must be enabled in a separate record (see example below).\n#\n# USER can be \"all\", a user name, a group name prefixed with \"+\", or a\n# comma-separated list thereof.  In both the DATABASE and USER fields\n# you can also write a file name prefixed with \"@\" to include names\n# from a separate file.\n#\n# ADDRESS specifies the set of hosts the record matches.  It can be a\n# host name, or it is made up of an IP address and a CIDR mask that is\n# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that\n# specifies the number of significant bits in the mask.  A host name\n# that starts with a dot (.) matches a suffix of the actual host name.\n# Alternatively, you can write an IP address and netmask in separate\n# columns to specify the set of hosts.  Instead of a CIDR-address, you\n# can write \"samehost\" to match any of the server's own IP addresses,\n# or \"samenet\" to match any address in any subnet that the server is\n# directly connected to.\n#\n# METHOD can be \"trust\", \"reject\", \"md5\", \"password\", \"scram-sha-256\",\n# \"gss\", \"sspi\", \"ident\", \"peer\", \"pam\", \"ldap\", \"radius\" or \"cert\".\n# Note that \"password\" sends passwords in clear text; \"md5\" or\n# \"scram-sha-256\" are preferred since they send encrypted passwords.\n#\n# OPTIONS are a set of options for the authentication in the format\n# NAME=VALUE.  The available options depend on the different\n# authentication methods -- refer to the \"Client Authentication\"\n# section in the documentation for a list of which options are\n# available for which authentication methods.\n#\n# Database and user names containing spaces, commas, quotes and other\n# special characters must be quoted.  Quoting one of the keywords\n# \"all\", \"sameuser\", \"samerole\" or \"replication\" makes the name lose\n# its special character, and just match a database or username with\n# that name.\n#\n# This file is read on server startup and when the server receives a\n# SIGHUP signal.  If you edit the file on a running system, you have to\n# SIGHUP the server for the changes to take effect, run \"pg_ctl reload\",\n# or execute \"SELECT pg_reload_conf()\".\n#\n# Put your actual configuration here\n# ----------------------------------\n#\n# If you want to allow non-local connections, you need to add more\n# \"host\" records.  In that case you will also need to make PostgreSQL\n# listen on a non-local interface via the listen_addresses\n# configuration parameter, or via the -i or -h command line switches.\n\n# CAUTION: Configuring the system for local \"trust\" authentication\n# allows any local user to connect as any PostgreSQL user, including\n# the database superuser.  If you do not trust all your local users,\n# use another authentication method.\n\n\n# TYPE  DATABASE        USER            ADDRESS                 METHOD\n\n# \"local\" is for Unix domain socket connections only\nlocal   all             all                                     trust\n# IPv4 local connections:\nhost    all             all             127.0.0.1/32            trust\n# IPv6 local connections:\nhost    all             all             ::1/128                 trust\n# Allow replication connections from localhost, by a user with the\n# replication privilege.\nlocal   replication     all                                     trust\nhost    replication     all             127.0.0.1/32            trust\nhost    replication     all             ::1/128                 trust\n\nhost all all all md5\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/pg_ident.conf",
    "content": "# PostgreSQL User Name Maps\n# =========================\n#\n# Refer to the PostgreSQL documentation, chapter \"Client\n# Authentication\" for a complete description.  A short synopsis\n# follows.\n#\n# This file controls PostgreSQL user name mapping.  It maps external\n# user names to their corresponding PostgreSQL user names.  Records\n# are of the form:\n#\n# MAPNAME  SYSTEM-USERNAME  PG-USERNAME\n#\n# (The uppercase quantities must be replaced by actual values.)\n#\n# MAPNAME is the (otherwise freely chosen) map name that was used in\n# pg_hba.conf.  SYSTEM-USERNAME is the detected user name of the\n# client.  PG-USERNAME is the requested PostgreSQL user name.  The\n# existence of a record specifies that SYSTEM-USERNAME may connect as\n# PG-USERNAME.\n#\n# If SYSTEM-USERNAME starts with a slash (/), it will be treated as a\n# regular expression.  Optionally this can contain a capture (a\n# parenthesized subexpression).  The substring matching the capture\n# will be substituted for \\1 (backslash-one) if present in\n# PG-USERNAME.\n#\n# Multiple maps may be specified in this file and used by pg_hba.conf.\n#\n# No map names are defined in the default configuration.  If all\n# system user names and PostgreSQL user names are the same, you don't\n# need anything in this file.\n#\n# This file is read on server startup and when the postmaster receives\n# a SIGHUP signal.  If you edit the file on a running system, you have\n# to SIGHUP the postmaster for the changes to take effect.  You can\n# use \"pg_ctl reload\" to do that.\n\n# Put your actual configuration here\n# ----------------------------------\n\n# MAPNAME       SYSTEM-USERNAME         PG-USERNAME\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/postgresql.auto.conf",
    "content": "# Do not edit this file manually!\n# It will be overwritten by the ALTER SYSTEM command.\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/postgresql.conf",
    "content": "# -----------------------------\n# PostgreSQL configuration file\n# -----------------------------\n#\n# This file consists of lines of the form:\n#\n#   name = value\n#\n# (The \"=\" is optional.)  Whitespace may be used.  Comments are introduced with\n# \"#\" anywhere on a line.  The complete list of parameter names and allowed\n# values can be found in the PostgreSQL documentation.\n#\n# The commented-out settings shown in this file represent the default values.\n# Re-commenting a setting is NOT sufficient to revert it to the default value;\n# you need to reload the server.\n#\n# This file is read on server startup and when the server receives a SIGHUP\n# signal.  If you edit the file on a running system, you have to SIGHUP the\n# server for the changes to take effect, run \"pg_ctl reload\", or execute\n# \"SELECT pg_reload_conf()\".  Some parameters, which are marked below,\n# require a server shutdown and restart to take effect.\n#\n# Any parameter can also be given as a command-line option to the server, e.g.,\n# \"postgres -c log_connections=on\".  Some parameters can be changed at run time\n# with the \"SET\" SQL command.\n#\n# Memory units:  kB = kilobytes        Time units:  ms  = milliseconds\n#                MB = megabytes                     s   = seconds\n#                GB = gigabytes                     min = minutes\n#                TB = terabytes                     h   = hours\n#                                                   d   = days\n\n\n#------------------------------------------------------------------------------\n# FILE LOCATIONS\n#------------------------------------------------------------------------------\n\n# The default values of these variables are driven from the -D command-line\n# option or PGDATA environment variable, represented here as ConfigDir.\n\n#data_directory = 'ConfigDir'\t\t# use data in another directory\n\t\t\t\t\t# (change requires restart)\n#hba_file = 'ConfigDir/pg_hba.conf'\t# host-based authentication file\n\t\t\t\t\t# (change requires restart)\n#ident_file = 'ConfigDir/pg_ident.conf'\t# ident configuration file\n\t\t\t\t\t# (change requires restart)\n\n# If external_pid_file is not explicitly set, no extra PID file is written.\n#external_pid_file = ''\t\t\t# write an extra PID file\n\t\t\t\t\t# (change requires restart)\n\n\n#------------------------------------------------------------------------------\n# CONNECTIONS AND AUTHENTICATION\n#------------------------------------------------------------------------------\n\n# - Connection Settings -\n\nlisten_addresses = '*'\n\t\t\t\t\t# comma-separated list of addresses;\n\t\t\t\t\t# defaults to 'localhost'; use '*' for all\n\t\t\t\t\t# (change requires restart)\n#port = 5432\t\t\t\t# (change requires restart)\nmax_connections = 100\t\t\t# (change requires restart)\n#superuser_reserved_connections = 3\t# (change requires restart)\n#unix_socket_directories = '/var/run/postgresql'\t# comma-separated list of directories\n\t\t\t\t\t# (change requires restart)\n#unix_socket_group = ''\t\t\t# (change requires restart)\n#unix_socket_permissions = 0777\t\t# begin with 0 to use octal notation\n\t\t\t\t\t# (change requires restart)\n#bonjour = off\t\t\t\t# advertise server via Bonjour\n\t\t\t\t\t# (change requires restart)\n#bonjour_name = ''\t\t\t# defaults to the computer name\n\t\t\t\t\t# (change requires restart)\n\n# - TCP settings -\n# see \"man tcp\" for details\n\n#tcp_keepalives_idle = 0\t\t# TCP_KEEPIDLE, in seconds;\n\t\t\t\t\t# 0 selects the system default\n#tcp_keepalives_interval = 0\t\t# TCP_KEEPINTVL, in seconds;\n\t\t\t\t\t# 0 selects the system default\n#tcp_keepalives_count = 0\t\t# TCP_KEEPCNT;\n\t\t\t\t\t# 0 selects the system default\n#tcp_user_timeout = 0\t\t\t# TCP_USER_TIMEOUT, in milliseconds;\n\t\t\t\t\t# 0 selects the system default\n\n# - Authentication -\n\n#authentication_timeout = 1min\t\t# 1s-600s\n#password_encryption = md5\t\t# md5 or scram-sha-256\n#db_user_namespace = off\n\n# GSSAPI using Kerberos\n#krb_server_keyfile = 'FILE:${sysconfdir}/krb5.keytab'\n#krb_caseins_users = off\n\n# - SSL -\n\n#ssl = off\n#ssl_ca_file = ''\n#ssl_cert_file = 'server.crt'\n#ssl_crl_file = ''\n#ssl_key_file = 'server.key'\n#ssl_ciphers = 'HIGH:MEDIUM:+3DES:!aNULL' # allowed SSL ciphers\n#ssl_prefer_server_ciphers = on\n#ssl_ecdh_curve = 'prime256v1'\n#ssl_min_protocol_version = 'TLSv1.2'\n#ssl_max_protocol_version = ''\n#ssl_dh_params_file = ''\n#ssl_passphrase_command = ''\n#ssl_passphrase_command_supports_reload = off\n\n\n#------------------------------------------------------------------------------\n# RESOURCE USAGE (except WAL)\n#------------------------------------------------------------------------------\n\n# - Memory -\n\nshared_buffers = 128MB\t\t\t# min 128kB\n\t\t\t\t\t# (change requires restart)\n#huge_pages = try\t\t\t# on, off, or try\n\t\t\t\t\t# (change requires restart)\n#temp_buffers = 8MB\t\t\t# min 800kB\n#max_prepared_transactions = 0\t\t# zero disables the feature\n\t\t\t\t\t# (change requires restart)\n# Caution: it is not advisable to set max_prepared_transactions nonzero unless\n# you actively intend to use prepared transactions.\n#work_mem = 4MB\t\t\t\t# min 64kB\n#hash_mem_multiplier = 1.0\t\t# 1-1000.0 multiplier on hash table work_mem\n#maintenance_work_mem = 64MB\t\t# min 1MB\n#autovacuum_work_mem = -1\t\t# min 1MB, or -1 to use maintenance_work_mem\n#logical_decoding_work_mem = 64MB\t# min 64kB\n#max_stack_depth = 2MB\t\t\t# min 100kB\n#shared_memory_type = mmap\t\t# the default is the first option\n\t\t\t\t\t# supported by the operating system:\n\t\t\t\t\t#   mmap\n\t\t\t\t\t#   sysv\n\t\t\t\t\t#   windows\n\t\t\t\t\t# (change requires restart)\ndynamic_shared_memory_type = posix\t# the default is the first option\n\t\t\t\t\t# supported by the operating system:\n\t\t\t\t\t#   posix\n\t\t\t\t\t#   sysv\n\t\t\t\t\t#   windows\n\t\t\t\t\t#   mmap\n\t\t\t\t\t# (change requires restart)\n\n# - Disk -\n\n#temp_file_limit = -1\t\t\t# limits per-process temp file space\n\t\t\t\t\t# in kilobytes, or -1 for no limit\n\n# - Kernel Resources -\n\n#max_files_per_process = 1000\t\t# min 64\n\t\t\t\t\t# (change requires restart)\n\n# - Cost-Based Vacuum Delay -\n\n#vacuum_cost_delay = 0\t\t\t# 0-100 milliseconds (0 disables)\n#vacuum_cost_page_hit = 1\t\t# 0-10000 credits\n#vacuum_cost_page_miss = 10\t\t# 0-10000 credits\n#vacuum_cost_page_dirty = 20\t\t# 0-10000 credits\n#vacuum_cost_limit = 200\t\t# 1-10000 credits\n\n# - Background Writer -\n\n#bgwriter_delay = 200ms\t\t\t# 10-10000ms between rounds\n#bgwriter_lru_maxpages = 100\t\t# max buffers written/round, 0 disables\n#bgwriter_lru_multiplier = 2.0\t\t# 0-10.0 multiplier on buffers scanned/round\n#bgwriter_flush_after = 512kB\t\t# measured in pages, 0 disables\n\n# - Asynchronous Behavior -\n\n#effective_io_concurrency = 1\t\t# 1-1000; 0 disables prefetching\n#maintenance_io_concurrency = 10\t# 1-1000; 0 disables prefetching\n#max_worker_processes = 8\t\t# (change requires restart)\n#max_parallel_maintenance_workers = 2\t# taken from max_parallel_workers\n#max_parallel_workers_per_gather = 2\t# taken from max_parallel_workers\n#parallel_leader_participation = on\n#max_parallel_workers = 8\t\t# maximum number of max_worker_processes that\n\t\t\t\t\t# can be used in parallel operations\n#old_snapshot_threshold = -1\t\t# 1min-60d; -1 disables; 0 is immediate\n\t\t\t\t\t# (change requires restart)\n#backend_flush_after = 0\t\t# measured in pages, 0 disables\n\n\n#------------------------------------------------------------------------------\n# WRITE-AHEAD LOG\n#------------------------------------------------------------------------------\n\n# - Settings -\n\n#wal_level = replica\t\t\t# minimal, replica, or logical\n\t\t\t\t\t# (change requires restart)\n#fsync = on\t\t\t\t# flush data to disk for crash safety\n\t\t\t\t\t# (turning this off can cause\n\t\t\t\t\t# unrecoverable data corruption)\n#synchronous_commit = on\t\t# synchronization level;\n\t\t\t\t\t# off, local, remote_write, remote_apply, or on\n#wal_sync_method = fsync\t\t# the default is the first option\n\t\t\t\t\t# supported by the operating system:\n\t\t\t\t\t#   open_datasync\n\t\t\t\t\t#   fdatasync (default on Linux)\n\t\t\t\t\t#   fsync\n\t\t\t\t\t#   fsync_writethrough\n\t\t\t\t\t#   open_sync\n#full_page_writes = on\t\t\t# recover from partial page writes\n#wal_compression = off\t\t\t# enable compression of full-page writes\n#wal_log_hints = off\t\t\t# also do full page writes of non-critical updates\n\t\t\t\t\t# (change requires restart)\n#wal_init_zero = on\t\t\t# zero-fill new WAL files\n#wal_recycle = on\t\t\t# recycle WAL files\n#wal_buffers = -1\t\t\t# min 32kB, -1 sets based on shared_buffers\n\t\t\t\t\t# (change requires restart)\n#wal_writer_delay = 200ms\t\t# 1-10000 milliseconds\n#wal_writer_flush_after = 1MB\t\t# measured in pages, 0 disables\n#wal_skip_threshold = 2MB\n\n#commit_delay = 0\t\t\t# range 0-100000, in microseconds\n#commit_siblings = 5\t\t\t# range 1-1000\n\n# - Checkpoints -\n\n#checkpoint_timeout = 5min\t\t# range 30s-1d\nmax_wal_size = 1GB\nmin_wal_size = 80MB\n#checkpoint_completion_target = 0.5\t# checkpoint target duration, 0.0 - 1.0\n#checkpoint_flush_after = 256kB\t\t# measured in pages, 0 disables\n#checkpoint_warning = 30s\t\t# 0 disables\n\n# - Archiving -\n\n#archive_mode = off\t\t# enables archiving; off, on, or always\n\t\t\t\t# (change requires restart)\n#archive_command = ''\t\t# command to use to archive a logfile segment\n\t\t\t\t# placeholders: %p = path of file to archive\n\t\t\t\t#               %f = file name only\n\t\t\t\t# e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'\n#archive_timeout = 0\t\t# force a logfile segment switch after this\n\t\t\t\t# number of seconds; 0 disables\n\n# - Archive Recovery -\n\n# These are only used in recovery mode.\n\n#restore_command = ''\t\t# command to use to restore an archived logfile segment\n\t\t\t\t# placeholders: %p = path of file to restore\n\t\t\t\t#               %f = file name only\n\t\t\t\t# e.g. 'cp /mnt/server/archivedir/%f %p'\n\t\t\t\t# (change requires restart)\n#archive_cleanup_command = ''\t# command to execute at every restartpoint\n#recovery_end_command = ''\t# command to execute at completion of recovery\n\n# - Recovery Target -\n\n# Set these only when performing a targeted recovery.\n\n#recovery_target = ''\t\t# 'immediate' to end recovery as soon as a\n                                # consistent state is reached\n\t\t\t\t# (change requires restart)\n#recovery_target_name = ''\t# the named restore point to which recovery will proceed\n\t\t\t\t# (change requires restart)\n#recovery_target_time = ''\t# the time stamp up to which recovery will proceed\n\t\t\t\t# (change requires restart)\n#recovery_target_xid = ''\t# the transaction ID up to which recovery will proceed\n\t\t\t\t# (change requires restart)\n#recovery_target_lsn = ''\t# the WAL LSN up to which recovery will proceed\n\t\t\t\t# (change requires restart)\n#recovery_target_inclusive = on # Specifies whether to stop:\n\t\t\t\t# just after the specified recovery target (on)\n\t\t\t\t# just before the recovery target (off)\n\t\t\t\t# (change requires restart)\n#recovery_target_timeline = 'latest'\t# 'current', 'latest', or timeline ID\n\t\t\t\t# (change requires restart)\n#recovery_target_action = 'pause'\t# 'pause', 'promote', 'shutdown'\n\t\t\t\t# (change requires restart)\n\n\n#------------------------------------------------------------------------------\n# REPLICATION\n#------------------------------------------------------------------------------\n\n# - Sending Servers -\n\n# Set these on the master and on any standby that will send replication data.\n\n#max_wal_senders = 10\t\t# max number of walsender processes\n\t\t\t\t# (change requires restart)\n#wal_keep_size = 0\t\t# in megabytes; 0 disables\n#max_slot_wal_keep_size = -1\t# in megabytes; -1 disables\n#wal_sender_timeout = 60s\t# in milliseconds; 0 disables\n\n#max_replication_slots = 10\t# max number of replication slots\n\t\t\t\t# (change requires restart)\n#track_commit_timestamp = off\t# collect timestamp of transaction commit\n\t\t\t\t# (change requires restart)\n\n# - Master Server -\n\n# These settings are ignored on a standby server.\n\n#synchronous_standby_names = ''\t# standby servers that provide sync rep\n\t\t\t\t# method to choose sync standbys, number of sync standbys,\n\t\t\t\t# and comma-separated list of application_name\n\t\t\t\t# from standby(s); '*' = all\n#vacuum_defer_cleanup_age = 0\t# number of xacts by which cleanup is delayed\n\n# - Standby Servers -\n\n# These settings are ignored on a master server.\n\n#primary_conninfo = ''\t\t\t# connection string to sending server\n#primary_slot_name = ''\t\t\t# replication slot on sending server\n#promote_trigger_file = ''\t\t# file name whose presence ends recovery\n#hot_standby = on\t\t\t# \"off\" disallows queries during recovery\n\t\t\t\t\t# (change requires restart)\n#max_standby_archive_delay = 30s\t# max delay before canceling queries\n\t\t\t\t\t# when reading WAL from archive;\n\t\t\t\t\t# -1 allows indefinite delay\n#max_standby_streaming_delay = 30s\t# max delay before canceling queries\n\t\t\t\t\t# when reading streaming WAL;\n\t\t\t\t\t# -1 allows indefinite delay\n#wal_receiver_create_temp_slot = off\t# create temp slot if primary_slot_name\n\t\t\t\t\t# is not set\n#wal_receiver_status_interval = 10s\t# send replies at least this often\n\t\t\t\t\t# 0 disables\n#hot_standby_feedback = off\t\t# send info from standby to prevent\n\t\t\t\t\t# query conflicts\n#wal_receiver_timeout = 60s\t\t# time that receiver waits for\n\t\t\t\t\t# communication from master\n\t\t\t\t\t# in milliseconds; 0 disables\n#wal_retrieve_retry_interval = 5s\t# time to wait before retrying to\n\t\t\t\t\t# retrieve WAL after a failed attempt\n#recovery_min_apply_delay = 0\t\t# minimum delay for applying changes during recovery\n\n# - Subscribers -\n\n# These settings are ignored on a publisher.\n\n#max_logical_replication_workers = 4\t# taken from max_worker_processes\n\t\t\t\t\t# (change requires restart)\n#max_sync_workers_per_subscription = 2\t# taken from max_logical_replication_workers\n\n\n#------------------------------------------------------------------------------\n# QUERY TUNING\n#------------------------------------------------------------------------------\n\n# - Planner Method Configuration -\n\n#enable_bitmapscan = on\n#enable_hashagg = on\n#enable_hashjoin = on\n#enable_indexscan = on\n#enable_indexonlyscan = on\n#enable_material = on\n#enable_mergejoin = on\n#enable_nestloop = on\n#enable_parallel_append = on\n#enable_seqscan = on\n#enable_sort = on\n#enable_incremental_sort = on\n#enable_tidscan = on\n#enable_partitionwise_join = off\n#enable_partitionwise_aggregate = off\n#enable_parallel_hash = on\n#enable_partition_pruning = on\n\n# - Planner Cost Constants -\n\n#seq_page_cost = 1.0\t\t\t# measured on an arbitrary scale\n#random_page_cost = 4.0\t\t\t# same scale as above\n#cpu_tuple_cost = 0.01\t\t\t# same scale as above\n#cpu_index_tuple_cost = 0.005\t\t# same scale as above\n#cpu_operator_cost = 0.0025\t\t# same scale as above\n#parallel_tuple_cost = 0.1\t\t# same scale as above\n#parallel_setup_cost = 1000.0\t# same scale as above\n\n#jit_above_cost = 100000\t\t# perform JIT compilation if available\n\t\t\t\t\t# and query more expensive than this;\n\t\t\t\t\t# -1 disables\n#jit_inline_above_cost = 500000\t\t# inline small functions if query is\n\t\t\t\t\t# more expensive than this; -1 disables\n#jit_optimize_above_cost = 500000\t# use expensive JIT optimizations if\n\t\t\t\t\t# query is more expensive than this;\n\t\t\t\t\t# -1 disables\n\n#min_parallel_table_scan_size = 8MB\n#min_parallel_index_scan_size = 512kB\n#effective_cache_size = 4GB\n\n# - Genetic Query Optimizer -\n\n#geqo = on\n#geqo_threshold = 12\n#geqo_effort = 5\t\t\t# range 1-10\n#geqo_pool_size = 0\t\t\t# selects default based on effort\n#geqo_generations = 0\t\t\t# selects default based on effort\n#geqo_selection_bias = 2.0\t\t# range 1.5-2.0\n#geqo_seed = 0.0\t\t\t# range 0.0-1.0\n\n# - Other Planner Options -\n\n#default_statistics_target = 100\t# range 1-10000\n#constraint_exclusion = partition\t# on, off, or partition\n#cursor_tuple_fraction = 0.1\t\t# range 0.0-1.0\n#from_collapse_limit = 8\n#join_collapse_limit = 8\t\t# 1 disables collapsing of explicit\n\t\t\t\t\t# JOIN clauses\n#force_parallel_mode = off\n#jit = on\t\t\t\t# allow JIT compilation\n#plan_cache_mode = auto\t\t\t# auto, force_generic_plan or\n\t\t\t\t\t# force_custom_plan\n\n\n#------------------------------------------------------------------------------\n# REPORTING AND LOGGING\n#------------------------------------------------------------------------------\n\n# - Where to Log -\n\n#log_destination = 'stderr'\t\t# Valid values are combinations of\n\t\t\t\t\t# stderr, csvlog, syslog, and eventlog,\n\t\t\t\t\t# depending on platform.  csvlog\n\t\t\t\t\t# requires logging_collector to be on.\n\n# This is used when logging to stderr:\n#logging_collector = off\t\t# Enable capturing of stderr and csvlog\n\t\t\t\t\t# into log files. Required to be on for\n\t\t\t\t\t# csvlogs.\n\t\t\t\t\t# (change requires restart)\n\n# These are only used if logging_collector is on:\n#log_directory = 'log'\t\t\t# directory where log files are written,\n\t\t\t\t\t# can be absolute or relative to PGDATA\n#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'\t# log file name pattern,\n\t\t\t\t\t# can include strftime() escapes\n#log_file_mode = 0600\t\t\t# creation mode for log files,\n\t\t\t\t\t# begin with 0 to use octal notation\n#log_truncate_on_rotation = off\t\t# If on, an existing log file with the\n\t\t\t\t\t# same name as the new log file will be\n\t\t\t\t\t# truncated rather than appended to.\n\t\t\t\t\t# But such truncation only occurs on\n\t\t\t\t\t# time-driven rotation, not on restarts\n\t\t\t\t\t# or size-driven rotation.  Default is\n\t\t\t\t\t# off, meaning append to existing files\n\t\t\t\t\t# in all cases.\n#log_rotation_age = 1d\t\t\t# Automatic rotation of logfiles will\n\t\t\t\t\t# happen after that time.  0 disables.\n#log_rotation_size = 10MB\t\t# Automatic rotation of logfiles will\n\t\t\t\t\t# happen after that much log output.\n\t\t\t\t\t# 0 disables.\n\n# These are relevant when logging to syslog:\n#syslog_facility = 'LOCAL0'\n#syslog_ident = 'postgres'\n#syslog_sequence_numbers = on\n#syslog_split_messages = on\n\n# This is only relevant when logging to eventlog (win32):\n# (change requires restart)\n#event_source = 'PostgreSQL'\n\n# - When to Log -\n\n#log_min_messages = warning\t\t# values in order of decreasing detail:\n\t\t\t\t\t#   debug5\n\t\t\t\t\t#   debug4\n\t\t\t\t\t#   debug3\n\t\t\t\t\t#   debug2\n\t\t\t\t\t#   debug1\n\t\t\t\t\t#   info\n\t\t\t\t\t#   notice\n\t\t\t\t\t#   warning\n\t\t\t\t\t#   error\n\t\t\t\t\t#   log\n\t\t\t\t\t#   fatal\n\t\t\t\t\t#   panic\n\n#log_min_error_statement = error\t# values in order of decreasing detail:\n\t\t\t\t\t#   debug5\n\t\t\t\t\t#   debug4\n\t\t\t\t\t#   debug3\n\t\t\t\t\t#   debug2\n\t\t\t\t\t#   debug1\n\t\t\t\t\t#   info\n\t\t\t\t\t#   notice\n\t\t\t\t\t#   warning\n\t\t\t\t\t#   error\n\t\t\t\t\t#   log\n\t\t\t\t\t#   fatal\n\t\t\t\t\t#   panic (effectively off)\n\n#log_min_duration_statement = -1\t# -1 is disabled, 0 logs all statements\n\t\t\t\t\t# and their durations, > 0 logs only\n\t\t\t\t\t# statements running at least this number\n\t\t\t\t\t# of milliseconds\n\n#log_min_duration_sample = -1\t\t# -1 is disabled, 0 logs a sample of statements\n\t\t\t\t\t# and their durations, > 0 logs only a sample of\n\t\t\t\t\t# statements running at least this number\n\t\t\t\t\t# of milliseconds;\n\t\t\t\t\t# sample fraction is determined by log_statement_sample_rate\n\n#log_statement_sample_rate = 1.0\t# fraction of logged statements exceeding\n\t\t\t\t\t# log_min_duration_sample to be logged;\n\t\t\t\t\t# 1.0 logs all such statements, 0.0 never logs\n\n\n#log_transaction_sample_rate = 0.0\t# fraction of transactions whose statements\n\t\t\t\t\t# are logged regardless of their duration; 1.0 logs all\n\t\t\t\t\t# statements from all transactions, 0.0 never logs\n\n# - What to Log -\n\n#debug_print_parse = off\n#debug_print_rewritten = off\n#debug_print_plan = off\n#debug_pretty_print = on\n#log_checkpoints = off\n#log_connections = off\n#log_disconnections = off\n#log_duration = off\n#log_error_verbosity = default\t\t# terse, default, or verbose messages\n#log_hostname = off\n#log_line_prefix = '%m [%p] '\t\t# special values:\n\t\t\t\t\t#   %a = application name\n\t\t\t\t\t#   %u = user name\n\t\t\t\t\t#   %d = database name\n\t\t\t\t\t#   %r = remote host and port\n\t\t\t\t\t#   %h = remote host\n\t\t\t\t\t#   %b = backend type\n\t\t\t\t\t#   %p = process ID\n\t\t\t\t\t#   %t = timestamp without milliseconds\n\t\t\t\t\t#   %m = timestamp with milliseconds\n\t\t\t\t\t#   %n = timestamp with milliseconds (as a Unix epoch)\n\t\t\t\t\t#   %i = command tag\n\t\t\t\t\t#   %e = SQL state\n\t\t\t\t\t#   %c = session ID\n\t\t\t\t\t#   %l = session line number\n\t\t\t\t\t#   %s = session start timestamp\n\t\t\t\t\t#   %v = virtual transaction ID\n\t\t\t\t\t#   %x = transaction ID (0 if none)\n\t\t\t\t\t#   %q = stop here in non-session\n\t\t\t\t\t#        processes\n\t\t\t\t\t#   %% = '%'\n\t\t\t\t\t# e.g. '<%u%%%d> '\n#log_lock_waits = off\t\t\t# log lock waits >= deadlock_timeout\n#log_parameter_max_length = -1\t\t# when logging statements, limit logged\n\t\t\t\t\t# bind-parameter values to N bytes;\n\t\t\t\t\t# -1 means print in full, 0 disables\n#log_parameter_max_length_on_error = 0\t# when logging an error, limit logged\n\t\t\t\t\t# bind-parameter values to N bytes;\n\t\t\t\t\t# -1 means print in full, 0 disables\n#log_statement = 'none'\t\t\t# none, ddl, mod, all\n#log_replication_commands = off\n#log_temp_files = -1\t\t\t# log temporary files equal or larger\n\t\t\t\t\t# than the specified size in kilobytes;\n\t\t\t\t\t# -1 disables, 0 logs all temp files\nlog_timezone = 'Etc/UTC'\n\n#------------------------------------------------------------------------------\n# PROCESS TITLE\n#------------------------------------------------------------------------------\n\n#cluster_name = ''\t\t\t# added to process titles if nonempty\n\t\t\t\t\t# (change requires restart)\n#update_process_title = on\n\n\n#------------------------------------------------------------------------------\n# STATISTICS\n#------------------------------------------------------------------------------\n\n# - Query and Index Statistics Collector -\n\n#track_activities = on\n#track_counts = on\n#track_io_timing = off\n#track_functions = none\t\t\t# none, pl, all\n#track_activity_query_size = 1024\t# (change requires restart)\n#stats_temp_directory = 'pg_stat_tmp'\n\n\n# - Monitoring -\n\n#log_parser_stats = off\n#log_planner_stats = off\n#log_executor_stats = off\n#log_statement_stats = off\n\n\n#------------------------------------------------------------------------------\n# AUTOVACUUM\n#------------------------------------------------------------------------------\n\n#autovacuum = on\t\t\t# Enable autovacuum subprocess?  'on'\n\t\t\t\t\t# requires track_counts to also be on.\n#log_autovacuum_min_duration = -1\t# -1 disables, 0 logs all actions and\n\t\t\t\t\t# their durations, > 0 logs only\n\t\t\t\t\t# actions running at least this number\n\t\t\t\t\t# of milliseconds.\n#autovacuum_max_workers = 3\t\t# max number of autovacuum subprocesses\n\t\t\t\t\t# (change requires restart)\n#autovacuum_naptime = 1min\t\t# time between autovacuum runs\n#autovacuum_vacuum_threshold = 50\t# min number of row updates before\n\t\t\t\t\t# vacuum\n#autovacuum_vacuum_insert_threshold = 1000\t# min number of row inserts\n\t\t\t\t\t# before vacuum; -1 disables insert\n\t\t\t\t\t# vacuums\n#autovacuum_analyze_threshold = 50\t# min number of row updates before\n\t\t\t\t\t# analyze\n#autovacuum_vacuum_scale_factor = 0.2\t# fraction of table size before vacuum\n#autovacuum_vacuum_insert_scale_factor = 0.2\t# fraction of inserts over table\n\t\t\t\t\t# size before insert vacuum\n#autovacuum_analyze_scale_factor = 0.1\t# fraction of table size before analyze\n#autovacuum_freeze_max_age = 200000000\t# maximum XID age before forced vacuum\n\t\t\t\t\t# (change requires restart)\n#autovacuum_multixact_freeze_max_age = 400000000\t# maximum multixact age\n\t\t\t\t\t# before forced vacuum\n\t\t\t\t\t# (change requires restart)\n#autovacuum_vacuum_cost_delay = 2ms\t# default vacuum cost delay for\n\t\t\t\t\t# autovacuum, in milliseconds;\n\t\t\t\t\t# -1 means use vacuum_cost_delay\n#autovacuum_vacuum_cost_limit = -1\t# default vacuum cost limit for\n\t\t\t\t\t# autovacuum, -1 means use\n\t\t\t\t\t# vacuum_cost_limit\n\n\n#------------------------------------------------------------------------------\n# CLIENT CONNECTION DEFAULTS\n#------------------------------------------------------------------------------\n\n# - Statement Behavior -\n\n#client_min_messages = notice\t\t# values in order of decreasing detail:\n\t\t\t\t\t#   debug5\n\t\t\t\t\t#   debug4\n\t\t\t\t\t#   debug3\n\t\t\t\t\t#   debug2\n\t\t\t\t\t#   debug1\n\t\t\t\t\t#   log\n\t\t\t\t\t#   notice\n\t\t\t\t\t#   warning\n\t\t\t\t\t#   error\n#search_path = '\"$user\", public'\t# schema names\n#row_security = on\n#default_tablespace = ''\t\t# a tablespace name, '' uses the default\n#temp_tablespaces = ''\t\t\t# a list of tablespace names, '' uses\n\t\t\t\t\t# only default tablespace\n#default_table_access_method = 'heap'\n#check_function_bodies = on\n#default_transaction_isolation = 'read committed'\n#default_transaction_read_only = off\n#default_transaction_deferrable = off\n#session_replication_role = 'origin'\n#statement_timeout = 0\t\t\t# in milliseconds, 0 is disabled\n#lock_timeout = 0\t\t\t# in milliseconds, 0 is disabled\n#idle_in_transaction_session_timeout = 0\t# in milliseconds, 0 is disabled\n#vacuum_freeze_min_age = 50000000\n#vacuum_freeze_table_age = 150000000\n#vacuum_multixact_freeze_min_age = 5000000\n#vacuum_multixact_freeze_table_age = 150000000\n#vacuum_cleanup_index_scale_factor = 0.1\t# fraction of total number of tuples\n\t\t\t\t\t\t# before index cleanup, 0 always performs\n\t\t\t\t\t\t# index cleanup\n#bytea_output = 'hex'\t\t\t# hex, escape\n#xmlbinary = 'base64'\n#xmloption = 'content'\n#gin_fuzzy_search_limit = 0\n#gin_pending_list_limit = 4MB\n\n# - Locale and Formatting -\n\ndatestyle = 'iso, mdy'\n#intervalstyle = 'postgres'\ntimezone = 'Etc/UTC'\n#timezone_abbreviations = 'Default'     # Select the set of available time zone\n\t\t\t\t\t# abbreviations.  Currently, there are\n\t\t\t\t\t#   Default\n\t\t\t\t\t#   Australia (historical usage)\n\t\t\t\t\t#   India\n\t\t\t\t\t# You can create your own file in\n\t\t\t\t\t# share/timezonesets/.\n#extra_float_digits = 1\t\t\t# min -15, max 3; any value >0 actually\n\t\t\t\t\t# selects precise output mode\n#client_encoding = sql_ascii\t\t# actually, defaults to database\n\t\t\t\t\t# encoding\n\n# These settings are initialized by initdb, but they can be changed.\nlc_messages = 'en_US.utf8'\t\t\t# locale for system error message\n\t\t\t\t\t# strings\nlc_monetary = 'en_US.utf8'\t\t\t# locale for monetary formatting\nlc_numeric = 'en_US.utf8'\t\t\t# locale for number formatting\nlc_time = 'en_US.utf8'\t\t\t\t# locale for time formatting\n\n# default configuration for text search\ndefault_text_search_config = 'pg_catalog.english'\n\n# - Shared Library Preloading -\n\n#shared_preload_libraries = ''\t# (change requires restart)\n#local_preload_libraries = ''\n#session_preload_libraries = ''\n#jit_provider = 'llvmjit'\t\t# JIT library to use\n\n# - Other Defaults -\n\n#dynamic_library_path = '$libdir'\n#extension_destdir = ''\t\t\t# prepend path when loading extensions\n\t\t\t\t\t# and shared objects (added by Debian)\n\n\n#------------------------------------------------------------------------------\n# LOCK MANAGEMENT\n#------------------------------------------------------------------------------\n\n#deadlock_timeout = 1s\n#max_locks_per_transaction = 64\t\t# min 10\n\t\t\t\t\t# (change requires restart)\n#max_pred_locks_per_transaction = 64\t# min 10\n\t\t\t\t\t# (change requires restart)\n#max_pred_locks_per_relation = -2\t# negative values mean\n\t\t\t\t\t# (max_pred_locks_per_transaction\n\t\t\t\t\t#  / -max_pred_locks_per_relation) - 1\n#max_pred_locks_per_page = 2            # min 0\n\n\n#------------------------------------------------------------------------------\n# VERSION AND PLATFORM COMPATIBILITY\n#------------------------------------------------------------------------------\n\n# - Previous PostgreSQL Versions -\n\n#array_nulls = on\n#backslash_quote = safe_encoding\t# on, off, or safe_encoding\n#escape_string_warning = on\n#lo_compat_privileges = off\n#operator_precedence_warning = off\n#quote_all_identifiers = off\n#standard_conforming_strings = on\n#synchronize_seqscans = on\n\n# - Other Platforms and Clients -\n\n#transform_null_equals = off\n\n\n#------------------------------------------------------------------------------\n# ERROR HANDLING\n#------------------------------------------------------------------------------\n\n#exit_on_error = off\t\t\t# terminate session on any error?\n#restart_after_crash = on\t\t# reinitialize after backend crash?\n#data_sync_retry = off\t\t\t# retry or panic on failure to fsync\n\t\t\t\t\t# data?\n\t\t\t\t\t# (change requires restart)\n\n\n#------------------------------------------------------------------------------\n# CONFIG FILE INCLUDES\n#------------------------------------------------------------------------------\n\n# These options allow settings to be loaded from files other than the\n# default postgresql.conf.  Note that these are directives, not variable\n# assignments, so they can usefully be given more than once.\n\n#include_dir = '...'\t\t\t# include files ending in '.conf' from\n\t\t\t\t\t# a directory, e.g., 'conf.d'\n#include_if_exists = '...'\t\t# include file only if it exists\n#include = '...'\t\t\t# include file\n\n\n#------------------------------------------------------------------------------\n# CUSTOMIZED OPTIONS\n#------------------------------------------------------------------------------\n\n# Add settings for extensions here\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/postmaster.opts",
    "content": "/usr/lib/postgresql/13/bin/postgres\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/data/db/postmaster.pid",
    "content": "1\n/var/lib/postgresql/data\n1617483916\n5432\n/var/run/postgresql\n*\n     6977         0\nready   \n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/db.sqlite3",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/docker-compose.yml",
    "content": "version: \"3.8\"\nservices:\n\n  # Redis\n  redis:\n    image: redis:alpine\n    container_name: redis\n\n  # Database Postgres\n  db:\n    image: postgres\n    volumes:\n      - ./data/db:/var/lib/postgresql/data\n    environment:\n      - POSTGRES_DB=postgres\n      - POSTGRES_USER=postgres\n      - POSTGRES_PASSWORD=postgres\n    container_name: postgres_db\n\n  # Django Application\n  app:\n    build: .\n    volumes:\n      - .:/django\n    ports:\n      - 8000:8000\n    image: app:django\n    container_name: django_app\n    command: python manage.py runserver 0.0.0.0:8000\n    depends_on:\n      - db \n      \n  # Celery\n  celery:\n    restart: always\n    build:\n      context: .\n    command: celery -A core worker -l DEBUG\n    volumes:\n      - .:/django\n    container_name: celery\n    depends_on:\n      - db\n      - redis\n      - app\n\n\n\n\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/newapp/__init__.py",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/newapp/admin.py",
    "content": "from django.contrib import admin\n\n# Register your models here.\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/newapp/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass NewappConfig(AppConfig):\n    name = 'newapp'\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/newapp/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/newapp/tasks.py",
    "content": "from __future__ import absolute_import, unicode_literals\n\nfrom celery import shared_task\n\n@shared_task\ndef add(x, y):\n    return x + y"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/req.txt",
    "content": "appdirs==1.4.4\nasgiref==3.3.1\nastroid==2.4.2\nautopep8==1.5.4\nblack==20.8b1\ncertifi==2020.12.5\nchardet==4.0.0\nclick==7.1.2\ncolorama==0.4.3\ncoverage==5.4\nDjango==3.1.7\ndjango-cors-headers==3.5.0\ndjango-countries==7.0\ndjango-debug-toolbar==3.2\ndjango-js-asset==1.2.2\ndjango-mptt==0.12.0\ndjango-summernote==0.8.11.6\ndjangorestframework==3.12.2\nFaker==6.6.0\nflake8==3.8.4\nflake8-django==1.1.1\nflake9-isort==4.0.2\nidna==2.10\nisort==5.7.0\nlazy-object-proxy==1.4.3\nmccabe==0.6.1\nmypy-extensions==0.4.3\npathspec==0.8.1\npep8==1.7.1\nPillow==8.1.2\npycodestyle==2.6.0\npyflakes==2.2.0\npylint==2.6.0\npylint-django==2.4.2\npylint-plugin-utils==0.6\npython-dateutil==2.8.1\npytz==2021.1\nregex==2020.11.13\nrequests==2.25.1\nsix==1.15.0\nsqlparse==0.4.1\nstripe==2.56.0\ntestfixtures==6.17.1\ntext-unidecode==1.3\ntoml==0.10.2\ntyped-ast==1.4.2\ntyping-extensions==3.7.4.3\nurllib3==1.26.3\nwrapt==1.12.1\n"
  },
  {
    "path": "Part-4 Django Postgres Redis and Celery/requirements.txt",
    "content": "asgiref==3.3.1\nDjango==3.1.7\npytz==2021.1\nsqlparse==0.4.1\npsycopg2>=2.8\nredis>=3.5\ncelery>=5.0"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/.dockerignore",
    "content": ".dockerignore\nDockerfile"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/build\n\n# misc\n.DS_Store\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/Dockerfile",
    "content": "FROM node:15.13-alpine\nWORKDIR /core\nENV PATH=\"./node_modules/.bin:$PATH\"\nCOPY . .\nRUN npm run build"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/commands.txt",
    "content": "npx create-react-app my-app\ndocker build --tag react .\ndocker run react\ndocker run --publish 3000:3000 react\ndocker-compose build .\ndocker-compose run app"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/docker-compose.yml",
    "content": "version: \"3.8\"\nservices:\n  app:\n    build:\n      context: .\n    volumes:\n      - .:/core\n    ports:\n      - 3000:3000\n    image: app:react\n    container_name: react_container\n    command: npm start"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/package.json",
    "content": "{\n  \"name\": \"core\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@testing-library/jest-dom\": \"^5.11.10\",\n    \"@testing-library/react\": \"^11.2.6\",\n    \"@testing-library/user-event\": \"^12.8.3\",\n    \"react\": \"^17.0.2\",\n    \"react-dom\": \"^17.0.2\",\n    \"react-scripts\": \"4.0.3\",\n    \"web-vitals\": \"^1.1.1\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test\",\n    \"eject\": \"react-scripts eject\"\n  },\n  \"eslintConfig\": {\n    \"extends\": [\n      \"react-app\",\n      \"react-app/jest\"\n    ]\n  },\n  \"browserslist\": {\n    \"production\": [\n      \">0.2%\",\n      \"not dead\",\n      \"not op_mini all\"\n    ],\n    \"development\": [\n      \"last 1 chrome version\",\n      \"last 1 firefox version\",\n      \"last 1 safari version\"\n    ]\n  }\n}\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/public/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <link rel=\"icon\" href=\"%PUBLIC_URL%/favicon.ico\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <meta name=\"theme-color\" content=\"#000000\" />\n    <meta\n      name=\"description\"\n      content=\"Web site created using create-react-app\"\n    />\n    <link rel=\"apple-touch-icon\" href=\"%PUBLIC_URL%/logo192.png\" />\n    <!--\n      manifest.json provides metadata used when your web app is installed on a\n      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n    -->\n    <link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\" />\n    <!--\n      Notice the use of %PUBLIC_URL% in the tags above.\n      It will be replaced with the URL of the `public` folder during the build.\n      Only files inside the `public` folder can be referenced from the HTML.\n\n      Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n      work correctly both with client-side routing and a non-root public URL.\n      Learn how to configure a non-root public URL by running `npm run build`.\n    -->\n    <title>React App</title>\n  </head>\n  <body>\n    <noscript>You need to enable JavaScript to run this app.</noscript>\n    <div id=\"root\"></div>\n    <!--\n      This HTML file is a template.\n      If you open it directly in the browser, you will see an empty page.\n\n      You can add webfonts, meta tags, or analytics to this file.\n      The build step will place the bundled scripts into the <body> tag.\n\n      To begin the development, run `npm start` or `yarn start`.\n      To create a production bundle, use `npm run build` or `yarn build`.\n    -->\n  </body>\n</html>\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/public/manifest.json",
    "content": "{\n  \"short_name\": \"React App\",\n  \"name\": \"Create React App Sample\",\n  \"icons\": [\n    {\n      \"src\": \"favicon.ico\",\n      \"sizes\": \"64x64 32x32 24x24 16x16\",\n      \"type\": \"image/x-icon\"\n    },\n    {\n      \"src\": \"logo192.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"192x192\"\n    },\n    {\n      \"src\": \"logo512.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"512x512\"\n    }\n  ],\n  \"start_url\": \".\",\n  \"display\": \"standalone\",\n  \"theme_color\": \"#000000\",\n  \"background_color\": \"#ffffff\"\n}\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/public/robots.txt",
    "content": "# https://www.robotstxt.org/robotstxt.html\nUser-agent: *\nDisallow:\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/App.css",
    "content": ".App {\n  text-align: center;\n}\n\n.App-logo {\n  height: 40vmin;\n  pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n  .App-logo {\n    animation: App-logo-spin infinite 20s linear;\n  }\n}\n\n.App-header {\n  background-color: #282c34;\n  min-height: 100vh;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  font-size: calc(10px + 2vmin);\n  color: white;\n}\n\n.App-link {\n  color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/App.js",
    "content": "import logo from './logo.svg';\nimport './App.css';\n\nfunction App() {\n  return (\n    <div className=\"App\">\n      <header className=\"App-header\">\n        <img src={logo} className=\"App-logo\" alt=\"logo\" />\n        <p>\n          Edit <code>src/App.js</code> and save to reload.\n        </p>\n        <a\n          className=\"App-link\"\n          href=\"https://reactjs.org\"\n          target=\"_blank\"\n          rel=\"noopener noreferrer\"\n        >\n          Learn React\n        </a>\n      </header>\n    </div>\n  );\n}\n\nexport default App;\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/App.test.js",
    "content": "import { render, screen } from '@testing-library/react';\nimport App from './App';\n\ntest('renders learn react link', () => {\n  render(<App />);\n  const linkElement = screen.getByText(/learn react/i);\n  expect(linkElement).toBeInTheDocument();\n});\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/index.css",
    "content": "body {\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n    sans-serif;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n    monospace;\n}\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/index.js",
    "content": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n  <React.StrictMode>\n    <App />\n  </React.StrictMode>,\n  document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/reportWebVitals.js",
    "content": "const reportWebVitals = onPerfEntry => {\n  if (onPerfEntry && onPerfEntry instanceof Function) {\n    import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n      getCLS(onPerfEntry);\n      getFID(onPerfEntry);\n      getFCP(onPerfEntry);\n      getLCP(onPerfEntry);\n      getTTFB(onPerfEntry);\n    });\n  }\n};\n\nexport default reportWebVitals;\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/src/setupTests.js",
    "content": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nimport '@testing-library/jest-dom';\n"
  },
  {
    "path": "Part-5 Dockerize a React Application/core/text.txt",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/commands.txt",
    "content": "\\\\wsl$\\docker-desktop-data\\version-pack-data\\community\\docker\\volumes\\"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/.dockerignore",
    "content": "venv"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/Dockerfile",
    "content": "FROM python:3.8-alpine\nENV PYTHONUNBUFFERED 1\nWORKDIR /django\nCOPY requirements.txt requirements.txt\nRUN pip3 install -r requirements.txt\nCOPY . ."
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/admin.py",
    "content": "from django.contrib import admin\nfrom . import models\n\n\n@admin.register(models.Post)\nclass AuthorAdmin(admin.ModelAdmin):\n    list_display = ('title', 'id', 'status', 'slug', 'author')\n    prepopulated_fields = {'slug': ('title',), }\n\n\nadmin.site.register(models.Category)\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass BlogConfig(AppConfig):\n    name = 'blog'\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/migrations/0001_initial.py",
    "content": "# Generated by Django 3.1.1 on 2020-09-09 20:53\n\nfrom django.conf import settings\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport django.utils.timezone\n\n\nclass Migration(migrations.Migration):\n\n    initial = True\n\n    dependencies = [\n        migrations.swappable_dependency(settings.AUTH_USER_MODEL),\n    ]\n\n    operations = [\n        migrations.CreateModel(\n            name='Category',\n            fields=[\n                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('name', models.CharField(max_length=100)),\n            ],\n        ),\n        migrations.CreateModel(\n            name='Post',\n            fields=[\n                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('title', models.CharField(max_length=250)),\n                ('excerpt', models.TextField(null=True)),\n                ('content', models.TextField()),\n                ('slug', models.SlugField(max_length=250, unique_for_date='publish')),\n                ('published', models.DateTimeField(default=django.utils.timezone.now)),\n                ('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='published', max_length=10)),\n                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL)),\n                ('category', models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='blog.category')),\n            ],\n            options={\n                'ordering': ('-published',),\n            },\n        ),\n    ]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/models.py",
    "content": "from django.db import models\nfrom django.contrib.auth.models import User\nfrom django.utils import timezone\n\n\nclass Category(models.Model):\n    name = models.CharField(max_length=100)\n\n    def __str__(self):\n        return self.name\n\n\nclass Post(models.Model):\n\n    class PostObjects(models.Manager):\n        def get_queryset(self):\n            return super().get_queryset() .filter(status='published')\n\n    options = (\n        ('draft', 'Draft'),\n        ('published', 'Published'),\n    )\n    category = models.ForeignKey(\n        Category, on_delete=models.PROTECT, default=1)\n    title = models.CharField(max_length=250)\n    excerpt = models.TextField(null=True)\n    content = models.TextField()\n    slug = models.SlugField(max_length=250, unique_for_date='published')\n    published = models.DateTimeField(default=timezone.now)\n    author = models.ForeignKey(\n        User, on_delete=models.CASCADE, related_name='blog_posts')\n    status = models.CharField(\n        max_length=10, choices=options, default='published')\n    objects = models.Manager()  # default manager\n    postobjects = PostObjects()  # custom manager\n\n    class Meta:\n        ordering = ('-published',)\n\n    def __str__(self):\n        return self.title\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/tests.py",
    "content": "from django.test import TestCase\nfrom django.contrib.auth.models import User\nfrom blog.models import Post, Category\n\n\nclass Test_Create_Post(TestCase):\n\n    @classmethod\n    def setUpTestData(cls):\n        test_category = Category.objects.create(name='django')\n\n        testuser1 = User.objects.create_user(\n            username='test_user1', password='123456789')\n        testuser1.save()\n\n        test_post = Post.objects.create(\n            category_id=1, title='Post Title', excerpt='Post Excerpt', content='Post Content', slug='post-title', author_id=1, status='published')\n        test_post.save()\n\n    def test_blog_content(self):\n        post = Post.postobjects.get(id=1)\n        cat = Category.objects.get(id=1)\n        author = f'{post.author}'\n        excerpt = f'{post.excerpt}'\n        title = f'{post.title}'\n        content = f'{post.content}'\n        status = f'{post.status}'\n        self.assertEqual(author, 'test_user1')\n        self.assertEqual(title, 'Post Title')\n        self.assertEqual(content, 'Post Content')\n        self.assertEqual(status, 'published')\n        self.assertEqual(str(post), \"Post Title\")\n        self.assertEqual(str(cat), \"django\")\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog/urls.py",
    "content": "from django.urls import path\nfrom django.views.generic import TemplateView\n\napp_name = 'blog'\n\nurlpatterns = [\n    path('', TemplateView.as_view(template_name=\"blog/index.html\")),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/admin.py",
    "content": "from django.contrib import admin\n\n# Register your models here.\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass BlogApiConfig(AppConfig):\n    name = 'blog_api'\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/models.py",
    "content": "from django.db import models\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/serializers.py",
    "content": "from rest_framework import serializers\nfrom blog.models import Post\n\n\nclass PostSerializer(serializers.ModelSerializer):\n    class Meta:\n        fields = ('id', 'title', 'author', 'excerpt', 'content', 'status')\n        model = Post\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/tests.py",
    "content": "from django.urls import reverse\nfrom rest_framework import status\nfrom rest_framework.test import APITestCase\nfrom blog.models import Post, Category\nfrom django.contrib.auth.models import User\n\n\nclass PostTests(APITestCase):\n\n    def test_view_posts(self):\n        \"\"\"\n        Ensure we can view all objects.\n        \"\"\"\n        url = reverse('blog_api:listcreate')\n        response = self.client.get(url, format='json')\n        self.assertEqual(response.status_code, status.HTTP_200_OK)\n\n    def test_create_account(self):\n        \"\"\"\n        Ensure we can create a new Post object and view object.\n        \"\"\"\n        self.test_category = Category.objects.create(name='django')\n\n        self.testuser1 = User.objects.create_user(\n            username='test_user1', password='123456789')\n\n        data = {\"title\": \"new\", \"author\": 1,\n                \"excerpt\": \"new\", \"content\": \"new\"}\n        url = reverse('blog_api:listcreate')\n        response = self.client.post(url, data, format='json')\n        self.assertEqual(response.status_code, status.HTTP_201_CREATED)\n        self.assertEqual(len(response.data), 6)\n        root = reverse(('blog_api:detailcreate'), kwargs={'pk': 1})\n        response = self.client.get(url, format='json')\n        self.assertEqual(response.status_code, status.HTTP_200_OK)\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/urls.py",
    "content": "from django.urls import path\nfrom .views import PostList, PostDetail\n\napp_name = 'blog_api'\n\nurlpatterns = [\n    path('<int:pk>/', PostDetail.as_view(), name='detailcreate'),\n    path('', PostList.as_view(), name='listcreate'),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/blog_api/views.py",
    "content": "from rest_framework import generics\nfrom blog.models import Post\nfrom .serializers import PostSerializer\n\n\nclass PostList(generics.ListCreateAPIView):\n    queryset = Post.objects.all()\n    serializer_class = PostSerializer\n\n\nclass PostDetail(generics.RetrieveDestroyAPIView):\n    queryset = Post.objects.all()\n    serializer_class = PostSerializer\n\n\n\"\"\" Concrete View Classes\n#CreateAPIView\nUsed for create-only endpoints.\n#ListAPIView\nUsed for read-only endpoints to represent a collection of model instances.\n#RetrieveAPIView\nUsed for read-only endpoints to represent a single model instance.\n#DestroyAPIView\nUsed for delete-only endpoints for a single model instance.\n#UpdateAPIView\nUsed for update-only endpoints for a single model instance.\n##ListCreateAPIView\nUsed for read-write endpoints to represent a collection of model instances.\nRetrieveUpdateAPIView\nUsed for read or update endpoints to represent a single model instance.\n#RetrieveDestroyAPIView\nUsed for read or delete endpoints to represent a single model instance.\n#RetrieveUpdateDestroyAPIView\nUsed for read-write-delete endpoints to represent a single model instance.\n\"\"\"\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/commands.txt",
    "content": "py manage.py makemigrations --dry-run --verbosity 3\npy manage.py runserver\npy manage.py createsuperuser \npip install coverage\ncoverage run --omit='*/venv/*' manage.py test\ncoverage html\npip install djangorestframework"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'o$&u%nbd)@uta53xz=zl1(3icpuhun2%pz(17^6lbgf(g%qa#f'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'blog',\n    'blog_api',\n    'rest_framework',\n    'corsheaders',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'corsheaders.middleware.CorsMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [BASE_DIR / 'templates'],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n\n\nREST_FRAMEWORK = {\n    'DEFAULT_PERMISSION_CLASSES': [\n        'rest_framework.permissions.AllowAny',\n    ]\n}\n\nCORS_ALLOWED_ORIGINS = [\n    \"http://127.0.0.1:3000\",\n    \"http://localhost:3000\"\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path, include\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n    path('', include('blog.urls', namespace='blog')),\n    path('api/', include('blog_api.urls', namespace='blog_api')),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_admin_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\admin.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\admin.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            7 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">7 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"op\">@</span><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">register</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Post</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">AuthorAdmin</span><span class=\"op\">(</span><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">ModelAdmin</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">list_display</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"str\">'status'</span><span class=\"op\">,</span> <span class=\"str\">'slug'</span><span class=\"op\">,</span> <span class=\"str\">'author'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">prepopulated_fields</span> <span class=\"op\">=</span> <span class=\"op\">{</span><span class=\"str\">'slug'</span><span class=\"op\">:</span> <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">site</span><span class=\"op\">.</span><span class=\"nam\">register</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Category</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_admin_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\admin.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\admin.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"com\"># Register your models here.</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_migrations___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\migrations\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\migrations\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_models_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\models.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\models.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_serializers_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\serializers.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\serializers.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            6 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">6 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">rest_framework</span> <span class=\"key\">import</span> <span class=\"nam\">serializers</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostSerializer</span><span class=\"op\">(</span><span class=\"nam\">serializers</span><span class=\"op\">.</span><span class=\"nam\">ModelSerializer</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">Meta</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">        <span class=\"nam\">fields</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"str\">'author'</span><span class=\"op\">,</span> <span class=\"str\">'excerpt'</span><span class=\"op\">,</span> <span class=\"str\">'content'</span><span class=\"op\">,</span> <span class=\"str\">'status'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">        <span class=\"nam\">model</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_tests_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\tests.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\tests.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">test</span> <span class=\"key\">import</span> <span class=\"nam\">TestCase</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"com\"># Create your tests here.</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            4 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">4 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span><span class=\"nam\">views</span> <span class=\"key\">import</span> <span class=\"nam\">PostList</span><span class=\"op\">,</span> <span class=\"nam\">PostDetail</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"nam\">app_name</span> <span class=\"op\">=</span> <span class=\"str\">'blog_api'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'&lt;int:pk>/'</span><span class=\"op\">,</span> <span class=\"nam\">PostDetail</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">PostList</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_api_views_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\views.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\views.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            10 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">10 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">rest_framework</span> <span class=\"key\">import</span> <span class=\"nam\">generics</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span><span class=\"nam\">serializers</span> <span class=\"key\">import</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostList</span><span class=\"op\">(</span><span class=\"nam\">generics</span><span class=\"op\">.</span><span class=\"nam\">ListCreateAPIView</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">queryset</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">all</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">serializer_class</span> <span class=\"op\">=</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostDetail</span><span class=\"op\">(</span><span class=\"nam\">generics</span><span class=\"op\">.</span><span class=\"nam\">RetrieveDestroyAPIView</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"run\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">    <span class=\"nam\">queryset</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">all</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">    <span class=\"nam\">serializer_class</span> <span class=\"op\">=</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"str\">\"\"\" Concrete View Classes</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\"><span class=\"str\">#CreateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\"><span class=\"str\">Used for create-only endpoints.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"str\">#ListAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\"><span class=\"str\">Used for read-only endpoints to represent a collection of model instances.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\"><span class=\"str\">#RetrieveAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\"><span class=\"str\">Used for read-only endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"str\">#DestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\"><span class=\"str\">Used for delete-only endpoints for a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\"><span class=\"str\">#UpdateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"pln\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\"><span class=\"str\">Used for update-only endpoints for a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\"><span class=\"str\">##ListCreateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"pln\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\"><span class=\"str\">Used for read-write endpoints to represent a collection of model instances.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\"><span class=\"str\">RetrieveUpdateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\"><span class=\"str\">Used for read or update endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\"><span class=\"str\">#RetrieveDestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\"><span class=\"str\">Used for read or delete endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\"><span class=\"str\">#RetrieveUpdateDestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\"><span class=\"str\">Used for read-write-delete endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_migrations_0001_initial_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\migrations\\0001_initial.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\migrations\\0001_initial.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            8 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">8 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"com\"># Generated by Django 3.1.1 on 2020-09-09 20:53</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">conf</span> <span class=\"key\">import</span> <span class=\"nam\">settings</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">migrations</span><span class=\"op\">,</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span><span class=\"op\">.</span><span class=\"nam\">timezone</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Migration</span><span class=\"op\">(</span><span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">Migration</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">    <span class=\"nam\">initial</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">    <span class=\"nam\">dependencies</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">swappable_dependency</span><span class=\"op\">(</span><span class=\"nam\">settings</span><span class=\"op\">.</span><span class=\"nam\">AUTH_USER_MODEL</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"pln\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">    <span class=\"nam\">operations</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">CreateModel</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">            <span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'Category'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">            <span class=\"nam\">fields</span><span class=\"op\">=</span><span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">AutoField</span><span class=\"op\">(</span><span class=\"nam\">auto_created</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">primary_key</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">serialize</span><span class=\"op\">=</span><span class=\"key\">False</span><span class=\"op\">,</span> <span class=\"nam\">verbose_name</span><span class=\"op\">=</span><span class=\"str\">'ID'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'name'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">100</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">CreateModel</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"pln\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">            <span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'Post'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">            <span class=\"nam\">fields</span><span class=\"op\">=</span><span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"pln\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">AutoField</span><span class=\"op\">(</span><span class=\"nam\">auto_created</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">primary_key</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">serialize</span><span class=\"op\">=</span><span class=\"key\">False</span><span class=\"op\">,</span> <span class=\"nam\">verbose_name</span><span class=\"op\">=</span><span class=\"str\">'ID'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'excerpt'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"nam\">null</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'content'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'slug'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">SlugField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">,</span> <span class=\"nam\">unique_for_date</span><span class=\"op\">=</span><span class=\"str\">'publish'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">DateTimeField</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span><span class=\"op\">.</span><span class=\"nam\">timezone</span><span class=\"op\">.</span><span class=\"nam\">now</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'status'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">choices</span><span class=\"op\">=</span><span class=\"op\">[</span><span class=\"op\">(</span><span class=\"str\">'draft'</span><span class=\"op\">,</span> <span class=\"str\">'Draft'</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"str\">'Published'</span><span class=\"op\">)</span><span class=\"op\">]</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">10</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'author'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span><span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span><span class=\"op\">.</span><span class=\"nam\">CASCADE</span><span class=\"op\">,</span> <span class=\"nam\">related_name</span><span class=\"op\">=</span><span class=\"str\">'blog_posts'</span><span class=\"op\">,</span> <span class=\"nam\">to</span><span class=\"op\">=</span><span class=\"nam\">settings</span><span class=\"op\">.</span><span class=\"nam\">AUTH_USER_MODEL</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'category'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span><span class=\"op\">.</span><span class=\"nam\">PROTECT</span><span class=\"op\">,</span> <span class=\"nam\">to</span><span class=\"op\">=</span><span class=\"str\">'blog.category'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"pln\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"pln\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">            <span class=\"nam\">options</span><span class=\"op\">=</span><span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">                <span class=\"str\">'ordering'</span><span class=\"op\">:</span> <span class=\"op\">(</span><span class=\"str\">'-published'</span><span class=\"op\">,</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"pln\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">            <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"pln\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">        <span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t42\" class=\"pln\"><span class=\"n\"><a href=\"#t42\">42</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_migrations___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\migrations\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\migrations\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_models_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\models.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\models.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            26 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">26 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span><span class=\"op\">.</span><span class=\"nam\">auth</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">User</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span> <span class=\"key\">import</span> <span class=\"nam\">timezone</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Category</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Model</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">name</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">100</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">__str__</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">        <span class=\"key\">return</span> <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">name</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Post</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Model</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"run\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">PostObjects</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Manager</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">        <span class=\"key\">def</span> <span class=\"nam\">get_queryset</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">            <span class=\"key\">return</span> <span class=\"nam\">super</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">get_queryset</span><span class=\"op\">(</span><span class=\"op\">)</span> <span class=\"op\">.</span><span class=\"nam\">filter</span><span class=\"op\">(</span><span class=\"nam\">status</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"run\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">    <span class=\"nam\">options</span> <span class=\"op\">=</span> <span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">        <span class=\"op\">(</span><span class=\"str\">'draft'</span><span class=\"op\">,</span> <span class=\"str\">'Draft'</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">        <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"str\">'Published'</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">    <span class=\"nam\">category</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"nam\">Category</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">PROTECT</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"run\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">    <span class=\"nam\">title</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">    <span class=\"nam\">excerpt</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"nam\">null</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"run\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">    <span class=\"nam\">content</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">    <span class=\"nam\">slug</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">SlugField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">,</span> <span class=\"nam\">unique_for_date</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"run\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">    <span class=\"nam\">published</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">DateTimeField</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"nam\">timezone</span><span class=\"op\">.</span><span class=\"nam\">now</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"run\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">    <span class=\"nam\">author</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">        <span class=\"nam\">User</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CASCADE</span><span class=\"op\">,</span> <span class=\"nam\">related_name</span><span class=\"op\">=</span><span class=\"str\">'blog_posts'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"run\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">    <span class=\"nam\">status</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">        <span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">10</span><span class=\"op\">,</span> <span class=\"nam\">choices</span><span class=\"op\">=</span><span class=\"nam\">options</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"run\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">    <span class=\"nam\">objects</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Manager</span><span class=\"op\">(</span><span class=\"op\">)</span>  <span class=\"com\"># default manager</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"run\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">    <span class=\"nam\">postobjects</span> <span class=\"op\">=</span> <span class=\"nam\">PostObjects</span><span class=\"op\">(</span><span class=\"op\">)</span>  <span class=\"com\"># custom manager</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"run\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">Meta</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"run\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">        <span class=\"nam\">ordering</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'-published'</span><span class=\"op\">,</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"run\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">__str__</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"run\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">        <span class=\"key\">return</span> <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">title</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:55 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_tests_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\tests.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\tests.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            25 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">25 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">test</span> <span class=\"key\">import</span> <span class=\"nam\">TestCase</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span><span class=\"op\">.</span><span class=\"nam\">auth</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">User</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span><span class=\"op\">,</span> <span class=\"nam\">Category</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Test_Create_Post</span><span class=\"op\">(</span><span class=\"nam\">TestCase</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"op\">@</span><span class=\"nam\">classmethod</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">setUpTestData</span><span class=\"op\">(</span><span class=\"nam\">cls</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">        <span class=\"nam\">test_category</span> <span class=\"op\">=</span> <span class=\"nam\">Category</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create</span><span class=\"op\">(</span><span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'django'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"run\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">        <span class=\"nam\">testuser1</span> <span class=\"op\">=</span> <span class=\"nam\">User</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create_user</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"pln\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">            <span class=\"nam\">username</span><span class=\"op\">=</span><span class=\"str\">'test_user1'</span><span class=\"op\">,</span> <span class=\"nam\">password</span><span class=\"op\">=</span><span class=\"str\">'123456789'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"run\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">        <span class=\"nam\">testuser1</span><span class=\"op\">.</span><span class=\"nam\">save</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">        <span class=\"nam\">test_post</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">            <span class=\"nam\">category_id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">title</span><span class=\"op\">=</span><span class=\"str\">'Post Title'</span><span class=\"op\">,</span> <span class=\"nam\">excerpt</span><span class=\"op\">=</span><span class=\"str\">'Post Excerpt'</span><span class=\"op\">,</span> <span class=\"nam\">content</span><span class=\"op\">=</span><span class=\"str\">'Post Content'</span><span class=\"op\">,</span> <span class=\"nam\">slug</span><span class=\"op\">=</span><span class=\"str\">'post-title'</span><span class=\"op\">,</span> <span class=\"nam\">author_id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">status</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"run\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">        <span class=\"nam\">test_post</span><span class=\"op\">.</span><span class=\"nam\">save</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"run\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">test_blog_content</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"run\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">        <span class=\"nam\">post</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">postobjects</span><span class=\"op\">.</span><span class=\"nam\">get</span><span class=\"op\">(</span><span class=\"nam\">id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"run\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">        <span class=\"nam\">cat</span> <span class=\"op\">=</span> <span class=\"nam\">Category</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">get</span><span class=\"op\">(</span><span class=\"nam\">id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">        <span class=\"nam\">author</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.author}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"run\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"nam\">excerpt</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.excerpt}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"run\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">        <span class=\"nam\">title</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.title}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">        <span class=\"nam\">content</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.content}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"run\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">        <span class=\"nam\">status</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.status}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">author</span><span class=\"op\">,</span> <span class=\"str\">'test_user1'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"run\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">title</span><span class=\"op\">,</span> <span class=\"str\">'Post Title'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"run\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">content</span><span class=\"op\">,</span> <span class=\"str\">'Post Content'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"run\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">status</span><span class=\"op\">,</span> <span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"run\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">str</span><span class=\"op\">(</span><span class=\"nam\">post</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"str\">\"Post Title\"</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"run\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">str</span><span class=\"op\">(</span><span class=\"nam\">cat</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"str\">\"django\"</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:55 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/blog_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            4 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">4 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">views</span><span class=\"op\">.</span><span class=\"nam\">generic</span> <span class=\"key\">import</span> <span class=\"nam\">TemplateView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"nam\">app_name</span> <span class=\"op\">=</span> <span class=\"str\">'blog'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">TemplateView</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"nam\">template_name</span><span class=\"op\">=</span><span class=\"str\">\"blog/index.html\"</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/core___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/core_settings_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\settings.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\settings.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            19 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">19 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"str\">Django settings for core project.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"str\">Generated by 'django-admin startproject' using Django 3.1.1.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"str\">For more information on this file, see</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"str\">https://docs.djangoproject.com/en/3.1/topics/settings/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"str\">For the full list of settings and their values, see</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\"><span class=\"str\">https://docs.djangoproject.com/en/3.1/ref/settings/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">pathlib</span> <span class=\"key\">import</span> <span class=\"nam\">Path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\"><span class=\"com\"># Build paths inside the project like this: BASE_DIR / 'subdir'.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"nam\">BASE_DIR</span> <span class=\"op\">=</span> <span class=\"nam\">Path</span><span class=\"op\">(</span><span class=\"nam\">__file__</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">resolve</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">parent</span><span class=\"op\">.</span><span class=\"nam\">parent</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"com\"># Quick-start development settings - unsuitable for production</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\"><span class=\"com\"># See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\"><span class=\"com\"># SECURITY WARNING: keep the secret key used in production secret!</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"nam\">SECRET_KEY</span> <span class=\"op\">=</span> <span class=\"str\">'o$&amp;u%nbd)@uta53xz=zl1(3icpuhun2%pz(17^6lbgf(g%qa#f'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\"><span class=\"com\"># SECURITY WARNING: don't run with debug turned on in production!</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\"><span class=\"nam\">DEBUG</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\"><span class=\"nam\">ALLOWED_HOSTS</span> <span class=\"op\">=</span> <span class=\"op\">[</span><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\"><span class=\"com\"># Application definition</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"run\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\"><span class=\"nam\">INSTALLED_APPS</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.admin'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.auth'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.contenttypes'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"pln\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.sessions'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"pln\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.messages'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.staticfiles'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"pln\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">    <span class=\"str\">'blog'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"pln\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">    <span class=\"str\">'blog_api'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t42\" class=\"pln\"><span class=\"n\"><a href=\"#t42\">42</a></span><span class=\"t\">    <span class=\"str\">'rest_framework'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t43\" class=\"pln\"><span class=\"n\"><a href=\"#t43\">43</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t44\" class=\"pln\"><span class=\"n\"><a href=\"#t44\">44</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t45\" class=\"run\"><span class=\"n\"><a href=\"#t45\">45</a></span><span class=\"t\"><span class=\"nam\">MIDDLEWARE</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t46\" class=\"pln\"><span class=\"n\"><a href=\"#t46\">46</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.security.SecurityMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t47\" class=\"pln\"><span class=\"n\"><a href=\"#t47\">47</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.sessions.middleware.SessionMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t48\" class=\"pln\"><span class=\"n\"><a href=\"#t48\">48</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.common.CommonMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t49\" class=\"pln\"><span class=\"n\"><a href=\"#t49\">49</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.csrf.CsrfViewMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t50\" class=\"pln\"><span class=\"n\"><a href=\"#t50\">50</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.auth.middleware.AuthenticationMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t51\" class=\"pln\"><span class=\"n\"><a href=\"#t51\">51</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.messages.middleware.MessageMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t52\" class=\"pln\"><span class=\"n\"><a href=\"#t52\">52</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.clickjacking.XFrameOptionsMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t53\" class=\"pln\"><span class=\"n\"><a href=\"#t53\">53</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t54\" class=\"pln\"><span class=\"n\"><a href=\"#t54\">54</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t55\" class=\"run\"><span class=\"n\"><a href=\"#t55\">55</a></span><span class=\"t\"><span class=\"nam\">ROOT_URLCONF</span> <span class=\"op\">=</span> <span class=\"str\">'core.urls'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t56\" class=\"pln\"><span class=\"n\"><a href=\"#t56\">56</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t57\" class=\"run\"><span class=\"n\"><a href=\"#t57\">57</a></span><span class=\"t\"><span class=\"nam\">TEMPLATES</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t58\" class=\"pln\"><span class=\"n\"><a href=\"#t58\">58</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t59\" class=\"pln\"><span class=\"n\"><a href=\"#t59\">59</a></span><span class=\"t\">        <span class=\"str\">'BACKEND'</span><span class=\"op\">:</span> <span class=\"str\">'django.template.backends.django.DjangoTemplates'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t60\" class=\"pln\"><span class=\"n\"><a href=\"#t60\">60</a></span><span class=\"t\">        <span class=\"str\">'DIRS'</span><span class=\"op\">:</span> <span class=\"op\">[</span><span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t61\" class=\"pln\"><span class=\"n\"><a href=\"#t61\">61</a></span><span class=\"t\">        <span class=\"str\">'APP_DIRS'</span><span class=\"op\">:</span> <span class=\"key\">True</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t62\" class=\"pln\"><span class=\"n\"><a href=\"#t62\">62</a></span><span class=\"t\">        <span class=\"str\">'OPTIONS'</span><span class=\"op\">:</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t63\" class=\"pln\"><span class=\"n\"><a href=\"#t63\">63</a></span><span class=\"t\">            <span class=\"str\">'context_processors'</span><span class=\"op\">:</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t64\" class=\"pln\"><span class=\"n\"><a href=\"#t64\">64</a></span><span class=\"t\">                <span class=\"str\">'django.template.context_processors.debug'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t65\" class=\"pln\"><span class=\"n\"><a href=\"#t65\">65</a></span><span class=\"t\">                <span class=\"str\">'django.template.context_processors.request'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t66\" class=\"pln\"><span class=\"n\"><a href=\"#t66\">66</a></span><span class=\"t\">                <span class=\"str\">'django.contrib.auth.context_processors.auth'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t67\" class=\"pln\"><span class=\"n\"><a href=\"#t67\">67</a></span><span class=\"t\">                <span class=\"str\">'django.contrib.messages.context_processors.messages'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t68\" class=\"pln\"><span class=\"n\"><a href=\"#t68\">68</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t69\" class=\"pln\"><span class=\"n\"><a href=\"#t69\">69</a></span><span class=\"t\">        <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t70\" class=\"pln\"><span class=\"n\"><a href=\"#t70\">70</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t71\" class=\"pln\"><span class=\"n\"><a href=\"#t71\">71</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t72\" class=\"pln\"><span class=\"n\"><a href=\"#t72\">72</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t73\" class=\"run\"><span class=\"n\"><a href=\"#t73\">73</a></span><span class=\"t\"><span class=\"nam\">WSGI_APPLICATION</span> <span class=\"op\">=</span> <span class=\"str\">'core.wsgi.application'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t74\" class=\"pln\"><span class=\"n\"><a href=\"#t74\">74</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t75\" class=\"pln\"><span class=\"n\"><a href=\"#t75\">75</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t76\" class=\"pln\"><span class=\"n\"><a href=\"#t76\">76</a></span><span class=\"t\"><span class=\"com\"># Database</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t77\" class=\"pln\"><span class=\"n\"><a href=\"#t77\">77</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/ref/settings/#databases</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t78\" class=\"pln\"><span class=\"n\"><a href=\"#t78\">78</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t79\" class=\"run\"><span class=\"n\"><a href=\"#t79\">79</a></span><span class=\"t\"><span class=\"nam\">DATABASES</span> <span class=\"op\">=</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t80\" class=\"pln\"><span class=\"n\"><a href=\"#t80\">80</a></span><span class=\"t\">    <span class=\"str\">'default'</span><span class=\"op\">:</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t81\" class=\"pln\"><span class=\"n\"><a href=\"#t81\">81</a></span><span class=\"t\">        <span class=\"str\">'ENGINE'</span><span class=\"op\">:</span> <span class=\"str\">'django.db.backends.sqlite3'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t82\" class=\"pln\"><span class=\"n\"><a href=\"#t82\">82</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"nam\">BASE_DIR</span> <span class=\"op\">/</span> <span class=\"str\">'db.sqlite3'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t83\" class=\"pln\"><span class=\"n\"><a href=\"#t83\">83</a></span><span class=\"t\">    <span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t84\" class=\"pln\"><span class=\"n\"><a href=\"#t84\">84</a></span><span class=\"t\"><span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t85\" class=\"pln\"><span class=\"n\"><a href=\"#t85\">85</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t86\" class=\"pln\"><span class=\"n\"><a href=\"#t86\">86</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t87\" class=\"pln\"><span class=\"n\"><a href=\"#t87\">87</a></span><span class=\"t\"><span class=\"com\"># Password validation</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t88\" class=\"pln\"><span class=\"n\"><a href=\"#t88\">88</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t89\" class=\"pln\"><span class=\"n\"><a href=\"#t89\">89</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t90\" class=\"run\"><span class=\"n\"><a href=\"#t90\">90</a></span><span class=\"t\"><span class=\"nam\">AUTH_PASSWORD_VALIDATORS</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t91\" class=\"pln\"><span class=\"n\"><a href=\"#t91\">91</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t92\" class=\"pln\"><span class=\"n\"><a href=\"#t92\">92</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t93\" class=\"pln\"><span class=\"n\"><a href=\"#t93\">93</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t94\" class=\"pln\"><span class=\"n\"><a href=\"#t94\">94</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t95\" class=\"pln\"><span class=\"n\"><a href=\"#t95\">95</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.MinimumLengthValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t96\" class=\"pln\"><span class=\"n\"><a href=\"#t96\">96</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t97\" class=\"pln\"><span class=\"n\"><a href=\"#t97\">97</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t98\" class=\"pln\"><span class=\"n\"><a href=\"#t98\">98</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.CommonPasswordValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t99\" class=\"pln\"><span class=\"n\"><a href=\"#t99\">99</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t100\" class=\"pln\"><span class=\"n\"><a href=\"#t100\">100</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t101\" class=\"pln\"><span class=\"n\"><a href=\"#t101\">101</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.NumericPasswordValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t102\" class=\"pln\"><span class=\"n\"><a href=\"#t102\">102</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t103\" class=\"pln\"><span class=\"n\"><a href=\"#t103\">103</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t104\" class=\"pln\"><span class=\"n\"><a href=\"#t104\">104</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t105\" class=\"pln\"><span class=\"n\"><a href=\"#t105\">105</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t106\" class=\"pln\"><span class=\"n\"><a href=\"#t106\">106</a></span><span class=\"t\"><span class=\"com\"># Internationalization</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t107\" class=\"pln\"><span class=\"n\"><a href=\"#t107\">107</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/topics/i18n/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t108\" class=\"pln\"><span class=\"n\"><a href=\"#t108\">108</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t109\" class=\"run\"><span class=\"n\"><a href=\"#t109\">109</a></span><span class=\"t\"><span class=\"nam\">LANGUAGE_CODE</span> <span class=\"op\">=</span> <span class=\"str\">'en-us'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t110\" class=\"pln\"><span class=\"n\"><a href=\"#t110\">110</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t111\" class=\"run\"><span class=\"n\"><a href=\"#t111\">111</a></span><span class=\"t\"><span class=\"nam\">TIME_ZONE</span> <span class=\"op\">=</span> <span class=\"str\">'UTC'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t112\" class=\"pln\"><span class=\"n\"><a href=\"#t112\">112</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t113\" class=\"run\"><span class=\"n\"><a href=\"#t113\">113</a></span><span class=\"t\"><span class=\"nam\">USE_I18N</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t114\" class=\"pln\"><span class=\"n\"><a href=\"#t114\">114</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t115\" class=\"run\"><span class=\"n\"><a href=\"#t115\">115</a></span><span class=\"t\"><span class=\"nam\">USE_L10N</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t116\" class=\"pln\"><span class=\"n\"><a href=\"#t116\">116</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t117\" class=\"run\"><span class=\"n\"><a href=\"#t117\">117</a></span><span class=\"t\"><span class=\"nam\">USE_TZ</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t118\" class=\"pln\"><span class=\"n\"><a href=\"#t118\">118</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t119\" class=\"pln\"><span class=\"n\"><a href=\"#t119\">119</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t120\" class=\"pln\"><span class=\"n\"><a href=\"#t120\">120</a></span><span class=\"t\"><span class=\"com\"># Static files (CSS, JavaScript, Images)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t121\" class=\"pln\"><span class=\"n\"><a href=\"#t121\">121</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/howto/static-files/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t122\" class=\"pln\"><span class=\"n\"><a href=\"#t122\">122</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t123\" class=\"run\"><span class=\"n\"><a href=\"#t123\">123</a></span><span class=\"t\"><span class=\"nam\">STATIC_URL</span> <span class=\"op\">=</span> <span class=\"str\">'/static/'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t124\" class=\"pln\"><span class=\"n\"><a href=\"#t124\">124</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t125\" class=\"pln\"><span class=\"n\"><a href=\"#t125\">125</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t126\" class=\"run\"><span class=\"n\"><a href=\"#t126\">126</a></span><span class=\"t\"><span class=\"nam\">REST_FRAMEWORK</span> <span class=\"op\">=</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t127\" class=\"pln\"><span class=\"n\"><a href=\"#t127\">127</a></span><span class=\"t\">    <span class=\"str\">'DEFAULT_PERMISSION_CLASSES'</span><span class=\"op\">:</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t128\" class=\"pln\"><span class=\"n\"><a href=\"#t128\">128</a></span><span class=\"t\">        <span class=\"str\">'rest_framework.permissions.AllowAny'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t129\" class=\"pln\"><span class=\"n\"><a href=\"#t129\">129</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t130\" class=\"pln\"><span class=\"n\"><a href=\"#t130\">130</a></span><span class=\"t\"><span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/core_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            3 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">3 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"str\">\"\"\"core URL Configuration</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"str\">The `urlpatterns` list routes URLs to views. For more information please see:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"str\">    https://docs.djangoproject.com/en/3.1/topics/http/urls/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"str\">Examples:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"str\">Function views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"str\">    1. Add an import:  from my_app import views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('', views.home, name='home')</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"str\">Class-based views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\"><span class=\"str\">    1. Add an import:  from other_app.views import Home</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\"><span class=\"str\">Including another URLconf</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"pln\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"str\">    1. Import the include() function: from django.urls import include, path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span><span class=\"op\">,</span> <span class=\"nam\">include</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"run\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'admin/'</span><span class=\"op\">,</span> <span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">site</span><span class=\"op\">.</span><span class=\"nam\">urls</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">include</span><span class=\"op\">(</span><span class=\"str\">'blog.urls'</span><span class=\"op\">,</span> <span class=\"nam\">namespace</span><span class=\"op\">=</span><span class=\"str\">'blog'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'api/'</span><span class=\"op\">,</span> <span class=\"nam\">include</span><span class=\"op\">(</span><span class=\"str\">'blog_api.urls'</span><span class=\"op\">,</span> <span class=\"nam\">namespace</span><span class=\"op\">=</span><span class=\"str\">'blog_api'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/coverage_html.js",
    "content": "// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0\n// For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt\n\n// Coverage.py HTML report browser code.\n/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */\n/*global coverage: true, document, window, $ */\n\ncoverage = {};\n\n// Find all the elements with shortkey_* class, and use them to assign a shortcut key.\ncoverage.assign_shortkeys = function () {\n    $(\"*[class*='shortkey_']\").each(function (i, e) {\n        $.each($(e).attr(\"class\").split(\" \"), function (i, c) {\n            if (/^shortkey_/.test(c)) {\n                $(document).bind('keydown', c.substr(9), function () {\n                    $(e).click();\n                });\n            }\n        });\n    });\n};\n\n// Create the events for the help panel.\ncoverage.wire_up_help_panel = function () {\n    $(\"#keyboard_icon\").click(function () {\n        // Show the help panel, and position it so the keyboard icon in the\n        // panel is in the same place as the keyboard icon in the header.\n        $(\".help_panel\").show();\n        var koff = $(\"#keyboard_icon\").offset();\n        var poff = $(\"#panel_icon\").position();\n        $(\".help_panel\").offset({\n            top: koff.top-poff.top,\n            left: koff.left-poff.left\n        });\n    });\n    $(\"#panel_icon\").click(function () {\n        $(\".help_panel\").hide();\n    });\n};\n\n// Create the events for the filter box.\ncoverage.wire_up_filter = function () {\n    // Cache elements.\n    var table = $(\"table.index\");\n    var table_rows = table.find(\"tbody tr\");\n    var table_row_names = table_rows.find(\"td.name a\");\n    var no_rows = $(\"#no_rows\");\n\n    // Create a duplicate table footer that we can modify with dynamic summed values.\n    var table_footer = $(\"table.index tfoot tr\");\n    var table_dynamic_footer = table_footer.clone();\n    table_dynamic_footer.attr('class', 'total_dynamic hidden');\n    table_footer.after(table_dynamic_footer);\n\n    // Observe filter keyevents.\n    $(\"#filter\").on(\"keyup change\", $.debounce(150, function (event) {\n        var filter_value = $(this).val();\n\n        if (filter_value === \"\") {\n            // Filter box is empty, remove all filtering.\n            table_rows.removeClass(\"hidden\");\n\n            // Show standard footer, hide dynamic footer.\n            table_footer.removeClass(\"hidden\");\n            table_dynamic_footer.addClass(\"hidden\");\n\n            // Hide placeholder, show table.\n            if (no_rows.length > 0) {\n                no_rows.hide();\n            }\n            table.show();\n\n        }\n        else {\n            // Filter table items by value.\n            var hidden = 0;\n            var shown = 0;\n\n            // Hide / show elements.\n            $.each(table_row_names, function () {\n                var element = $(this).parents(\"tr\");\n\n                if ($(this).text().indexOf(filter_value) === -1) {\n                    // hide\n                    element.addClass(\"hidden\");\n                    hidden++;\n                }\n                else {\n                    // show\n                    element.removeClass(\"hidden\");\n                    shown++;\n                }\n            });\n\n            // Show placeholder if no rows will be displayed.\n            if (no_rows.length > 0) {\n                if (shown === 0) {\n                    // Show placeholder, hide table.\n                    no_rows.show();\n                    table.hide();\n                }\n                else {\n                    // Hide placeholder, show table.\n                    no_rows.hide();\n                    table.show();\n                }\n            }\n\n            // Manage dynamic header:\n            if (hidden > 0) {\n                // Calculate new dynamic sum values based on visible rows.\n                for (var column = 2; column < 20; column++) {\n                    // Calculate summed value.\n                    var cells = table_rows.find('td:nth-child(' + column + ')');\n                    if (!cells.length) {\n                        // No more columns...!\n                        break;\n                    }\n\n                    var sum = 0, numer = 0, denom = 0;\n                    $.each(cells.filter(':visible'), function () {\n                        var ratio = $(this).data(\"ratio\");\n                        if (ratio) {\n                            var splitted = ratio.split(\" \");\n                            numer += parseInt(splitted[0], 10);\n                            denom += parseInt(splitted[1], 10);\n                        }\n                        else {\n                            sum += parseInt(this.innerHTML, 10);\n                        }\n                    });\n\n                    // Get footer cell element.\n                    var footer_cell = table_dynamic_footer.find('td:nth-child(' + column + ')');\n\n                    // Set value into dynamic footer cell element.\n                    if (cells[0].innerHTML.indexOf('%') > -1) {\n                        // Percentage columns use the numerator and denominator,\n                        // and adapt to the number of decimal places.\n                        var match = /\\.([0-9]+)/.exec(cells[0].innerHTML);\n                        var places = 0;\n                        if (match) {\n                            places = match[1].length;\n                        }\n                        var pct = numer * 100 / denom;\n                        footer_cell.text(pct.toFixed(places) + '%');\n                    }\n                    else {\n                        footer_cell.text(sum);\n                    }\n                }\n\n                // Hide standard footer, show dynamic footer.\n                table_footer.addClass(\"hidden\");\n                table_dynamic_footer.removeClass(\"hidden\");\n            }\n            else {\n                // Show standard footer, hide dynamic footer.\n                table_footer.removeClass(\"hidden\");\n                table_dynamic_footer.addClass(\"hidden\");\n            }\n        }\n    }));\n\n    // Trigger change event on setup, to force filter on page refresh\n    // (filter value may still be present).\n    $(\"#filter\").trigger(\"change\");\n};\n\n// Loaded on index.html\ncoverage.index_ready = function ($) {\n    // Look for a localStorage item containing previous sort settings:\n    var sort_list = [];\n    var storage_name = \"COVERAGE_INDEX_SORT\";\n    var stored_list = undefined;\n    try {\n        stored_list = localStorage.getItem(storage_name);\n    } catch(err) {}\n\n    if (stored_list) {\n        sort_list = JSON.parse('[[' + stored_list + ']]');\n    }\n\n    // Create a new widget which exists only to save and restore\n    // the sort order:\n    $.tablesorter.addWidget({\n        id: \"persistentSort\",\n\n        // Format is called by the widget before displaying:\n        format: function (table) {\n            if (table.config.sortList.length === 0 && sort_list.length > 0) {\n                // This table hasn't been sorted before - we'll use\n                // our stored settings:\n                $(table).trigger('sorton', [sort_list]);\n            }\n            else {\n                // This is not the first load - something has\n                // already defined sorting so we'll just update\n                // our stored value to match:\n                sort_list = table.config.sortList;\n            }\n        }\n    });\n\n    // Configure our tablesorter to handle the variable number of\n    // columns produced depending on report options:\n    var headers = [];\n    var col_count = $(\"table.index > thead > tr > th\").length;\n\n    headers[0] = { sorter: 'text' };\n    for (i = 1; i < col_count-1; i++) {\n        headers[i] = { sorter: 'digit' };\n    }\n    headers[col_count-1] = { sorter: 'percent' };\n\n    // Enable the table sorter:\n    $(\"table.index\").tablesorter({\n        widgets: ['persistentSort'],\n        headers: headers\n    });\n\n    coverage.assign_shortkeys();\n    coverage.wire_up_help_panel();\n    coverage.wire_up_filter();\n\n    // Watch for page unload events so we can save the final sort settings:\n    $(window).unload(function () {\n        try {\n            localStorage.setItem(storage_name, sort_list.toString())\n        } catch(err) {}\n    });\n};\n\n// -- pyfile stuff --\n\ncoverage.pyfile_ready = function ($) {\n    // If we're directed to a particular line number, highlight the line.\n    var frag = location.hash;\n    if (frag.length > 2 && frag[1] === 't') {\n        $(frag).addClass('highlight');\n        coverage.set_sel(parseInt(frag.substr(2), 10));\n    }\n    else {\n        coverage.set_sel(0);\n    }\n\n    $(document)\n        .bind('keydown', 'j', coverage.to_next_chunk_nicely)\n        .bind('keydown', 'k', coverage.to_prev_chunk_nicely)\n        .bind('keydown', '0', coverage.to_top)\n        .bind('keydown', '1', coverage.to_first_chunk)\n        ;\n\n    $(\".button_toggle_run\").click(function (evt) {coverage.toggle_lines(evt.target, \"run\");});\n    $(\".button_toggle_exc\").click(function (evt) {coverage.toggle_lines(evt.target, \"exc\");});\n    $(\".button_toggle_mis\").click(function (evt) {coverage.toggle_lines(evt.target, \"mis\");});\n    $(\".button_toggle_par\").click(function (evt) {coverage.toggle_lines(evt.target, \"par\");});\n\n    coverage.assign_shortkeys();\n    coverage.wire_up_help_panel();\n\n    coverage.init_scroll_markers();\n\n    // Rebuild scroll markers when the window height changes.\n    $(window).resize(coverage.build_scroll_markers);\n};\n\ncoverage.toggle_lines = function (btn, cls) {\n    btn = $(btn);\n    var show = \"show_\"+cls;\n    if (btn.hasClass(show)) {\n        $(\"#source .\" + cls).removeClass(show);\n        btn.removeClass(show);\n    }\n    else {\n        $(\"#source .\" + cls).addClass(show);\n        btn.addClass(show);\n    }\n    coverage.build_scroll_markers();\n};\n\n// Return the nth line div.\ncoverage.line_elt = function (n) {\n    return $(\"#t\" + n);\n};\n\n// Return the nth line number div.\ncoverage.num_elt = function (n) {\n    return $(\"#n\" + n);\n};\n\n// Set the selection.  b and e are line numbers.\ncoverage.set_sel = function (b, e) {\n    // The first line selected.\n    coverage.sel_begin = b;\n    // The next line not selected.\n    coverage.sel_end = (e === undefined) ? b+1 : e;\n};\n\ncoverage.to_top = function () {\n    coverage.set_sel(0, 1);\n    coverage.scroll_window(0);\n};\n\ncoverage.to_first_chunk = function () {\n    coverage.set_sel(0, 1);\n    coverage.to_next_chunk();\n};\n\n// Return a string indicating what kind of chunk this line belongs to,\n// or null if not a chunk.\ncoverage.chunk_indicator = function (line_elt) {\n    var klass = line_elt.attr('class');\n    if (klass) {\n        var m = klass.match(/\\bshow_\\w+\\b/);\n        if (m) {\n            return m[0];\n        }\n    }\n    return null;\n};\n\ncoverage.to_next_chunk = function () {\n    var c = coverage;\n\n    // Find the start of the next colored chunk.\n    var probe = c.sel_end;\n    var chunk_indicator, probe_line;\n    while (true) {\n        probe_line = c.line_elt(probe);\n        if (probe_line.length === 0) {\n            return;\n        }\n        chunk_indicator = c.chunk_indicator(probe_line);\n        if (chunk_indicator) {\n            break;\n        }\n        probe++;\n    }\n\n    // There's a next chunk, `probe` points to it.\n    var begin = probe;\n\n    // Find the end of this chunk.\n    var next_indicator = chunk_indicator;\n    while (next_indicator === chunk_indicator) {\n        probe++;\n        probe_line = c.line_elt(probe);\n        next_indicator = c.chunk_indicator(probe_line);\n    }\n    c.set_sel(begin, probe);\n    c.show_selection();\n};\n\ncoverage.to_prev_chunk = function () {\n    var c = coverage;\n\n    // Find the end of the prev colored chunk.\n    var probe = c.sel_begin-1;\n    var probe_line = c.line_elt(probe);\n    if (probe_line.length === 0) {\n        return;\n    }\n    var chunk_indicator = c.chunk_indicator(probe_line);\n    while (probe > 0 && !chunk_indicator) {\n        probe--;\n        probe_line = c.line_elt(probe);\n        if (probe_line.length === 0) {\n            return;\n        }\n        chunk_indicator = c.chunk_indicator(probe_line);\n    }\n\n    // There's a prev chunk, `probe` points to its last line.\n    var end = probe+1;\n\n    // Find the beginning of this chunk.\n    var prev_indicator = chunk_indicator;\n    while (prev_indicator === chunk_indicator) {\n        probe--;\n        probe_line = c.line_elt(probe);\n        prev_indicator = c.chunk_indicator(probe_line);\n    }\n    c.set_sel(probe+1, end);\n    c.show_selection();\n};\n\n// Return the line number of the line nearest pixel position pos\ncoverage.line_at_pos = function (pos) {\n    var l1 = coverage.line_elt(1),\n        l2 = coverage.line_elt(2),\n        result;\n    if (l1.length && l2.length) {\n        var l1_top = l1.offset().top,\n            line_height = l2.offset().top - l1_top,\n            nlines = (pos - l1_top) / line_height;\n        if (nlines < 1) {\n            result = 1;\n        }\n        else {\n            result = Math.ceil(nlines);\n        }\n    }\n    else {\n        result = 1;\n    }\n    return result;\n};\n\n// Returns 0, 1, or 2: how many of the two ends of the selection are on\n// the screen right now?\ncoverage.selection_ends_on_screen = function () {\n    if (coverage.sel_begin === 0) {\n        return 0;\n    }\n\n    var top = coverage.line_elt(coverage.sel_begin);\n    var next = coverage.line_elt(coverage.sel_end-1);\n\n    return (\n        (top.isOnScreen() ? 1 : 0) +\n        (next.isOnScreen() ? 1 : 0)\n    );\n};\n\ncoverage.to_next_chunk_nicely = function () {\n    coverage.finish_scrolling();\n    if (coverage.selection_ends_on_screen() === 0) {\n        // The selection is entirely off the screen: select the top line on\n        // the screen.\n        var win = $(window);\n        coverage.select_line_or_chunk(coverage.line_at_pos(win.scrollTop()));\n    }\n    coverage.to_next_chunk();\n};\n\ncoverage.to_prev_chunk_nicely = function () {\n    coverage.finish_scrolling();\n    if (coverage.selection_ends_on_screen() === 0) {\n        var win = $(window);\n        coverage.select_line_or_chunk(coverage.line_at_pos(win.scrollTop() + win.height()));\n    }\n    coverage.to_prev_chunk();\n};\n\n// Select line number lineno, or if it is in a colored chunk, select the\n// entire chunk\ncoverage.select_line_or_chunk = function (lineno) {\n    var c = coverage;\n    var probe_line = c.line_elt(lineno);\n    if (probe_line.length === 0) {\n        return;\n    }\n    var the_indicator = c.chunk_indicator(probe_line);\n    if (the_indicator) {\n        // The line is in a highlighted chunk.\n        // Search backward for the first line.\n        var probe = lineno;\n        var indicator = the_indicator;\n        while (probe > 0 && indicator === the_indicator) {\n            probe--;\n            probe_line = c.line_elt(probe);\n            if (probe_line.length === 0) {\n                break;\n            }\n            indicator = c.chunk_indicator(probe_line);\n        }\n        var begin = probe + 1;\n\n        // Search forward for the last line.\n        probe = lineno;\n        indicator = the_indicator;\n        while (indicator === the_indicator) {\n            probe++;\n            probe_line = c.line_elt(probe);\n            indicator = c.chunk_indicator(probe_line);\n        }\n\n        coverage.set_sel(begin, probe);\n    }\n    else {\n        coverage.set_sel(lineno);\n    }\n};\n\ncoverage.show_selection = function () {\n    var c = coverage;\n\n    // Highlight the lines in the chunk\n    $(\".linenos .highlight\").removeClass(\"highlight\");\n    for (var probe = c.sel_begin; probe > 0 && probe < c.sel_end; probe++) {\n        c.num_elt(probe).addClass(\"highlight\");\n    }\n\n    c.scroll_to_selection();\n};\n\ncoverage.scroll_to_selection = function () {\n    // Scroll the page if the chunk isn't fully visible.\n    if (coverage.selection_ends_on_screen() < 2) {\n        // Need to move the page. The html,body trick makes it scroll in all\n        // browsers, got it from http://stackoverflow.com/questions/3042651\n        var top = coverage.line_elt(coverage.sel_begin);\n        var top_pos = parseInt(top.offset().top, 10);\n        coverage.scroll_window(top_pos - 30);\n    }\n};\n\ncoverage.scroll_window = function (to_pos) {\n    $(\"html,body\").animate({scrollTop: to_pos}, 200);\n};\n\ncoverage.finish_scrolling = function () {\n    $(\"html,body\").stop(true, true);\n};\n\ncoverage.init_scroll_markers = function () {\n    var c = coverage;\n    // Init some variables\n    c.lines_len = $('#source p').length;\n    c.body_h = $('body').height();\n    c.header_h = $('div#header').height();\n\n    // Build html\n    c.build_scroll_markers();\n};\n\ncoverage.build_scroll_markers = function () {\n    var c = coverage,\n        min_line_height = 3,\n        max_line_height = 10,\n        visible_window_h = $(window).height();\n\n    c.lines_to_mark = $('#source').find('p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par');\n    $('#scroll_marker').remove();\n    // Don't build markers if the window has no scroll bar.\n    if (c.body_h <= visible_window_h) {\n        return;\n    }\n\n    $(\"body\").append(\"<div id='scroll_marker'>&nbsp;</div>\");\n    var scroll_marker = $('#scroll_marker'),\n        marker_scale = scroll_marker.height() / c.body_h,\n        line_height = scroll_marker.height() / c.lines_len;\n\n    // Line height must be between the extremes.\n    if (line_height > min_line_height) {\n        if (line_height > max_line_height) {\n            line_height = max_line_height;\n        }\n    }\n    else {\n        line_height = min_line_height;\n    }\n\n    var previous_line = -99,\n        last_mark,\n        last_top,\n        offsets = {};\n\n    // Calculate line offsets outside loop to prevent relayouts\n    c.lines_to_mark.each(function() {\n        offsets[this.id] = $(this).offset().top;\n    });\n    c.lines_to_mark.each(function () {\n        var id_name = $(this).attr('id'),\n            line_top = Math.round(offsets[id_name] * marker_scale),\n            line_number = parseInt(id_name.substring(1, id_name.length));\n\n        if (line_number === previous_line + 1) {\n            // If this solid missed block just make previous mark higher.\n            last_mark.css({\n                'height': line_top + line_height - last_top\n            });\n        }\n        else {\n            // Add colored line in scroll_marker block.\n            scroll_marker.append('<div id=\"m' + line_number + '\" class=\"marker\"></div>');\n            last_mark = $('#m' + line_number);\n            last_mark.css({\n                'height': line_height,\n                'top': line_top\n            });\n            last_top = line_top;\n        }\n\n        previous_line = line_number;\n    });\n};\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Coverage report</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.ba-throttle-debounce.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.tablesorter.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.index_ready);\n    </script>\n</head>\n<body class=\"indexfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage report:\n            <span class=\"pc_cov\">98%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <form id=\"filter_container\">\n            <input id=\"filter\" type=\"text\" value=\"\" placeholder=\"filter...\" />\n        </form>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">n</span>\n        <span class=\"key\">s</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">c</span> &nbsp; change column sorting\n    </p>\n    </div>\n</div>\n<div id=\"index\">\n    <table class=\"index\">\n        <thead>\n            <tr class=\"tablehead\" title=\"Click to sort\">\n                <th class=\"name left headerSortDown shortkey_n\">Module</th>\n                <th class=\"shortkey_s\">statements</th>\n                <th class=\"shortkey_m\">missing</th>\n                <th class=\"shortkey_x\">excluded</th>\n                <th class=\"right shortkey_c\">coverage</th>\n            </tr>\n        </thead>\n        <tfoot>\n            <tr class=\"total\">\n                <td class=\"name left\">Total</td>\n                <td>127</td>\n                <td>2</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"125 127\">98%</td>\n            </tr>\n        </tfoot>\n        <tbody>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog___init___py.html\">blog\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_admin_py.html\">blog\\admin.py</a></td>\n                <td>7</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"7 7\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_migrations_0001_initial_py.html\">blog\\migrations\\0001_initial.py</a></td>\n                <td>8</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"8 8\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_migrations___init___py.html\">blog\\migrations\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_models_py.html\">blog\\models.py</a></td>\n                <td>26</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"26 26\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_tests_py.html\">blog\\tests.py</a></td>\n                <td>25</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"25 25\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_urls_py.html\">blog\\urls.py</a></td>\n                <td>4</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"4 4\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api___init___py.html\">blog_api\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_admin_py.html\">blog_api\\admin.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_migrations___init___py.html\">blog_api\\migrations\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_models_py.html\">blog_api\\models.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_serializers_py.html\">blog_api\\serializers.py</a></td>\n                <td>6</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"6 6\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_tests_py.html\">blog_api\\tests.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_urls_py.html\">blog_api\\urls.py</a></td>\n                <td>4</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"4 4\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_views_py.html\">blog_api\\views.py</a></td>\n                <td>10</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"10 10\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core___init___py.html\">core\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core_settings_py.html\">core\\settings.py</a></td>\n                <td>19</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"19 19\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core_urls_py.html\">core\\urls.py</a></td>\n                <td>3</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"3 3\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"manage_py.html\">manage.py</a></td>\n                <td>12</td>\n                <td>2</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"10 12\">83%</td>\n            </tr>\n        </tbody>\n    </table>\n    <p id=\"no_rows\">\n        No items found using the specified filter.\n    </p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/jquery.hotkeys.js",
    "content": "/*\n * jQuery Hotkeys Plugin\n * Copyright 2010, John Resig\n * Dual licensed under the MIT or GPL Version 2 licenses.\n *\n * Based upon the plugin by Tzury Bar Yochay:\n * http://github.com/tzuryby/hotkeys\n *\n * Original idea by:\n * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/\n*/\n\n(function(jQuery){\n\n\tjQuery.hotkeys = {\n\t\tversion: \"0.8\",\n\n\t\tspecialKeys: {\n\t\t\t8: \"backspace\", 9: \"tab\", 13: \"return\", 16: \"shift\", 17: \"ctrl\", 18: \"alt\", 19: \"pause\",\n\t\t\t20: \"capslock\", 27: \"esc\", 32: \"space\", 33: \"pageup\", 34: \"pagedown\", 35: \"end\", 36: \"home\",\n\t\t\t37: \"left\", 38: \"up\", 39: \"right\", 40: \"down\", 45: \"insert\", 46: \"del\",\n\t\t\t96: \"0\", 97: \"1\", 98: \"2\", 99: \"3\", 100: \"4\", 101: \"5\", 102: \"6\", 103: \"7\",\n\t\t\t104: \"8\", 105: \"9\", 106: \"*\", 107: \"+\", 109: \"-\", 110: \".\", 111 : \"/\",\n\t\t\t112: \"f1\", 113: \"f2\", 114: \"f3\", 115: \"f4\", 116: \"f5\", 117: \"f6\", 118: \"f7\", 119: \"f8\",\n\t\t\t120: \"f9\", 121: \"f10\", 122: \"f11\", 123: \"f12\", 144: \"numlock\", 145: \"scroll\", 191: \"/\", 224: \"meta\"\n\t\t},\n\n\t\tshiftNums: {\n\t\t\t\"`\": \"~\", \"1\": \"!\", \"2\": \"@\", \"3\": \"#\", \"4\": \"$\", \"5\": \"%\", \"6\": \"^\", \"7\": \"&\",\n\t\t\t\"8\": \"*\", \"9\": \"(\", \"0\": \")\", \"-\": \"_\", \"=\": \"+\", \";\": \": \", \"'\": \"\\\"\", \",\": \"<\",\n\t\t\t\".\": \">\",  \"/\": \"?\",  \"\\\\\": \"|\"\n\t\t}\n\t};\n\n\tfunction keyHandler( handleObj ) {\n\t\t// Only care when a possible input has been specified\n\t\tif ( typeof handleObj.data !== \"string\" ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar origHandler = handleObj.handler,\n\t\t\tkeys = handleObj.data.toLowerCase().split(\" \");\n\n\t\thandleObj.handler = function( event ) {\n\t\t\t// Don't fire in text-accepting inputs that we didn't directly bind to\n\t\t\tif ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||\n\t\t\t\t event.target.type === \"text\") ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Keypress represents characters, not special keys\n\t\t\tvar special = event.type !== \"keypress\" && jQuery.hotkeys.specialKeys[ event.which ],\n\t\t\t\tcharacter = String.fromCharCode( event.which ).toLowerCase(),\n\t\t\t\tkey, modif = \"\", possible = {};\n\n\t\t\t// check combinations (alt|ctrl|shift+anything)\n\t\t\tif ( event.altKey && special !== \"alt\" ) {\n\t\t\t\tmodif += \"alt+\";\n\t\t\t}\n\n\t\t\tif ( event.ctrlKey && special !== \"ctrl\" ) {\n\t\t\t\tmodif += \"ctrl+\";\n\t\t\t}\n\n\t\t\t// TODO: Need to make sure this works consistently across platforms\n\t\t\tif ( event.metaKey && !event.ctrlKey && special !== \"meta\" ) {\n\t\t\t\tmodif += \"meta+\";\n\t\t\t}\n\n\t\t\tif ( event.shiftKey && special !== \"shift\" ) {\n\t\t\t\tmodif += \"shift+\";\n\t\t\t}\n\n\t\t\tif ( special ) {\n\t\t\t\tpossible[ modif + special ] = true;\n\n\t\t\t} else {\n\t\t\t\tpossible[ modif + character ] = true;\n\t\t\t\tpossible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;\n\n\t\t\t\t// \"$\" can be triggered as \"Shift+4\" or \"Shift+$\" or just \"$\"\n\t\t\t\tif ( modif === \"shift+\" ) {\n\t\t\t\t\tpossible[ jQuery.hotkeys.shiftNums[ character ] ] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( var i = 0, l = keys.length; i < l; i++ ) {\n\t\t\t\tif ( possible[ keys[i] ] ) {\n\t\t\t\t\treturn origHandler.apply( this, arguments );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\tjQuery.each([ \"keydown\", \"keyup\", \"keypress\" ], function() {\n\t\tjQuery.event.special[ this ] = { add: keyHandler };\n\t});\n\n})( jQuery );\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/jquery.isonscreen.js",
    "content": "/* Copyright (c) 2010\n * @author Laurence Wheway\n * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\n * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\n *\n * @version 1.2.0\n */\n(function($) {\n\tjQuery.extend({\n\t\tisOnScreen: function(box, container) {\n\t\t\t//ensure numbers come in as intgers (not strings) and remove 'px' is it's there\n\t\t\tfor(var i in box){box[i] = parseFloat(box[i])};\n\t\t\tfor(var i in container){container[i] = parseFloat(container[i])};\n\n\t\t\tif(!container){\n\t\t\t\tcontainer = {\n\t\t\t\t\tleft: $(window).scrollLeft(),\n\t\t\t\t\ttop: $(window).scrollTop(),\n\t\t\t\t\twidth: $(window).width(),\n\t\t\t\t\theight: $(window).height()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(\tbox.left+box.width-container.left > 0 &&\n\t\t\t\tbox.left < container.width+container.left &&\n\t\t\t\tbox.top+box.height-container.top > 0 &&\n\t\t\t\tbox.top < container.height+container.top\n\t\t\t) return true;\n\t\t\treturn false;\n\t\t}\n\t})\n\n\n\tjQuery.fn.isOnScreen = function (container) {\n\t\tfor(var i in container){container[i] = parseFloat(container[i])};\n\n\t\tif(!container){\n\t\t\tcontainer = {\n\t\t\t\tleft: $(window).scrollLeft(),\n\t\t\t\ttop: $(window).scrollTop(),\n\t\t\t\twidth: $(window).width(),\n\t\t\t\theight: $(window).height()\n\t\t\t}\n\t\t}\n\n\t\tif(\t$(this).offset().left+$(this).width()-container.left > 0 &&\n\t\t\t$(this).offset().left < container.width+container.left &&\n\t\t\t$(this).offset().top+$(this).height()-container.top > 0 &&\n\t\t\t$(this).offset().top < container.height+container.top\n\t\t) return true;\n\t\treturn false;\n\t}\n})(jQuery);\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/manage_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for manage.py: 83%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>manage.py</b> :\n            <span class=\"pc_cov\">83%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            12 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">10 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">2 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"com\">#!/usr/bin/env python</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"str\">\"\"\"Django's command-line utility for administrative tasks.\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">os</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">sys</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"key\">def</span> <span class=\"nam\">main</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"str\">\"\"\"Run administrative tasks.\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"nam\">os</span><span class=\"op\">.</span><span class=\"nam\">environ</span><span class=\"op\">.</span><span class=\"nam\">setdefault</span><span class=\"op\">(</span><span class=\"str\">'DJANGO_SETTINGS_MODULE'</span><span class=\"op\">,</span> <span class=\"str\">'core.settings'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">    <span class=\"key\">try</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">        <span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">core</span><span class=\"op\">.</span><span class=\"nam\">management</span> <span class=\"key\">import</span> <span class=\"nam\">execute_from_command_line</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"mis show_mis\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">    <span class=\"key\">except</span> <span class=\"nam\">ImportError</span> <span class=\"key\">as</span> <span class=\"nam\">exc</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"mis show_mis\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">        <span class=\"key\">raise</span> <span class=\"nam\">ImportError</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">            <span class=\"str\">\"Couldn't import Django. Are you sure it's installed and \"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">            <span class=\"str\">\"available on your PYTHONPATH environment variable? Did you \"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"pln\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">            <span class=\"str\">\"forget to activate a virtual environment?\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">        <span class=\"op\">)</span> <span class=\"key\">from</span> <span class=\"nam\">exc</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"run\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">    <span class=\"nam\">execute_from_command_line</span><span class=\"op\">(</span><span class=\"nam\">sys</span><span class=\"op\">.</span><span class=\"nam\">argv</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"run\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\"><span class=\"key\">if</span> <span class=\"nam\">__name__</span> <span class=\"op\">==</span> <span class=\"str\">'__main__'</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"run\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"nam\">main</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/status.json",
    "content": "{\"format\":2,\"version\":\"5.2.1\",\"globals\":\"c3fc29d529a3af98c1a2065daa2addf6\",\"files\":{\"blog___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog___init___py.html\",\"relative_filename\":\"blog\\\\__init__.py\"}},\"blog_admin_py\":{\"hash\":\"c4a66b1f102077f89e36517da546c95e\",\"index\":{\"nums\":[1,7,0,0,0,0,0],\"html_filename\":\"blog_admin_py.html\",\"relative_filename\":\"blog\\\\admin.py\"}},\"blog_migrations_0001_initial_py\":{\"hash\":\"50ef0f6229ac0ec033622371063921a8\",\"index\":{\"nums\":[1,8,0,0,0,0,0],\"html_filename\":\"blog_migrations_0001_initial_py.html\",\"relative_filename\":\"blog\\\\migrations\\\\0001_initial.py\"}},\"blog_migrations___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_migrations___init___py.html\",\"relative_filename\":\"blog\\\\migrations\\\\__init__.py\"}},\"blog_models_py\":{\"hash\":\"90df91e80c9619f5d6119ab3b921b75b\",\"index\":{\"nums\":[1,26,0,0,0,0,0],\"html_filename\":\"blog_models_py.html\",\"relative_filename\":\"blog\\\\models.py\"}},\"blog_tests_py\":{\"hash\":\"8b1753411cf60b3959028fb10772600e\",\"index\":{\"nums\":[1,25,0,0,0,0,0],\"html_filename\":\"blog_tests_py.html\",\"relative_filename\":\"blog\\\\tests.py\"}},\"blog_urls_py\":{\"hash\":\"5de25e221f5f526ff48181ca0726b942\",\"index\":{\"nums\":[1,4,0,0,0,0,0],\"html_filename\":\"blog_urls_py.html\",\"relative_filename\":\"blog\\\\urls.py\"}},\"blog_api___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_api___init___py.html\",\"relative_filename\":\"blog_api\\\\__init__.py\"}},\"blog_api_admin_py\":{\"hash\":\"23b3f8ab894286afb6416200cf284c31\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_admin_py.html\",\"relative_filename\":\"blog_api\\\\admin.py\"}},\"blog_api_migrations___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_api_migrations___init___py.html\",\"relative_filename\":\"blog_api\\\\migrations\\\\__init__.py\"}},\"blog_api_models_py\":{\"hash\":\"86756c38c1bc46a4338a9787cdec3d9f\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_models_py.html\",\"relative_filename\":\"blog_api\\\\models.py\"}},\"blog_api_tests_py\":{\"hash\":\"f19c76500f700766a5a7685bbf253a0f\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_tests_py.html\",\"relative_filename\":\"blog_api\\\\tests.py\"}},\"blog_api_urls_py\":{\"hash\":\"f09d68f03286414b85aeac7ef46b526e\",\"index\":{\"nums\":[1,4,0,0,0,0,0],\"html_filename\":\"blog_api_urls_py.html\",\"relative_filename\":\"blog_api\\\\urls.py\"}},\"core___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"core___init___py.html\",\"relative_filename\":\"core\\\\__init__.py\"}},\"core_settings_py\":{\"hash\":\"e1e7fa848f7f097353e13ef7e8a9e30b\",\"index\":{\"nums\":[1,19,0,0,0,0,0],\"html_filename\":\"core_settings_py.html\",\"relative_filename\":\"core\\\\settings.py\"}},\"core_urls_py\":{\"hash\":\"bf68d492820e7f916379b3f7de74ef01\",\"index\":{\"nums\":[1,3,0,0,0,0,0],\"html_filename\":\"core_urls_py.html\",\"relative_filename\":\"core\\\\urls.py\"}},\"manage_py\":{\"hash\":\"f8c6d49629b8856f7f764a87376dfe41\",\"index\":{\"nums\":[1,12,0,2,0,0,0],\"html_filename\":\"manage_py.html\",\"relative_filename\":\"manage.py\"}},\"blog_api_serializers_py\":{\"hash\":\"90d1f2282e1819a425b704c14e315a87\",\"index\":{\"nums\":[1,6,0,0,0,0,0],\"html_filename\":\"blog_api_serializers_py.html\",\"relative_filename\":\"blog_api\\\\serializers.py\"}},\"blog_api_views_py\":{\"hash\":\"a0950b25a090b5681ac439519a59bf48\",\"index\":{\"nums\":[1,10,0,0,0,0,0],\"html_filename\":\"blog_api_views_py.html\",\"relative_filename\":\"blog_api\\\\views.py\"}}}}"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/htmlcov/style.css",
    "content": "@charset \"UTF-8\";\n/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */\n/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */\n/* Don't edit this .css file. Edit the .scss file instead! */\nhtml, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }\n\nbody { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; font-size: 1em; background: #fff; color: #000; }\n\n@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { body { color: #eee; } }\n\nhtml > body { font-size: 16px; }\n\na:active, a:focus { outline: 2px dashed #007acc; }\n\np { font-size: .875em; line-height: 1.4em; }\n\ntable { border-collapse: collapse; }\n\ntd { vertical-align: top; }\n\ntable tr.hidden { display: none !important; }\n\np#no_rows { display: none; font-size: 1.2em; }\n\na.nav { text-decoration: none; color: inherit; }\n\na.nav:hover { text-decoration: underline; color: inherit; }\n\n#header { background: #f8f8f8; width: 100%; border-bottom: 1px solid #eee; }\n\n@media (prefers-color-scheme: dark) { #header { background: black; } }\n\n@media (prefers-color-scheme: dark) { #header { border-color: #333; } }\n\n.indexfile #footer { margin: 1rem 3rem; }\n\n.pyfile #footer { margin: 1rem 1rem; }\n\n#footer .content { padding: 0; color: #666; font-style: italic; }\n\n@media (prefers-color-scheme: dark) { #footer .content { color: #aaa; } }\n\n#index { margin: 1rem 0 0 3rem; }\n\n#header .content { padding: 1rem 3rem; }\n\nh1 { font-size: 1.25em; display: inline-block; }\n\n#filter_container { float: right; margin: 0 2em 0 0; }\n\n#filter_container input { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }\n\n@media (prefers-color-scheme: dark) { #filter_container input { border-color: #444; } }\n\n@media (prefers-color-scheme: dark) { #filter_container input { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { #filter_container input { color: #eee; } }\n\n#filter_container input:focus { border-color: #007acc; }\n\nh2.stats { margin-top: .5em; font-size: 1em; }\n\n.stats button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; color: inherit; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }\n\n@media (prefers-color-scheme: dark) { .stats button { border-color: #444; } }\n\n.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }\n\n.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }\n\n.stats button.run { background: #eeffee; }\n\n@media (prefers-color-scheme: dark) { .stats button.run { background: #373d29; } }\n\n.stats button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.run.show_run { background: #373d29; } }\n\n.stats button.mis { background: #ffeeee; }\n\n@media (prefers-color-scheme: dark) { .stats button.mis { background: #4b1818; } }\n\n.stats button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.mis.show_mis { background: #4b1818; } }\n\n.stats button.exc { background: #f7f7f7; }\n\n@media (prefers-color-scheme: dark) { .stats button.exc { background: #333; } }\n\n.stats button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.exc.show_exc { background: #333; } }\n\n.stats button.par { background: #ffffd5; }\n\n@media (prefers-color-scheme: dark) { .stats button.par { background: #650; } }\n\n.stats button.par.show_par { background: #ffa; border: 2px solid #dddd00; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.par.show_par { background: #650; } }\n\n.help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }\n\n#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }\n\n#keyboard_icon { float: right; margin: 5px; cursor: pointer; }\n\n.help_panel { padding: .5em; border: 1px solid #883; }\n\n.help_panel .legend { font-style: italic; margin-bottom: 1em; }\n\n.indexfile .help_panel { width: 20em; min-height: 4em; }\n\n.pyfile .help_panel { width: 16em; min-height: 8em; }\n\n#panel_icon { float: right; cursor: pointer; }\n\n.keyhelp { margin: .75em; }\n\n.keyhelp .key { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; }\n\n#source { padding: 1em 0 1em 3rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }\n\n#source p { position: relative; white-space: pre; }\n\n#source p * { box-sizing: border-box; }\n\n#source p .n { float: left; text-align: right; width: 3rem; box-sizing: border-box; margin-left: -3rem; padding-right: 1em; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }\n\n#source p .n a { text-decoration: none; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }\n\n#source p .n a:hover { text-decoration: underline; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }\n\n#source p.highlight .n { background: #ffdd00; }\n\n#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }\n\n@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }\n\n#source p .t:hover { background: #f2f2f2; }\n\n@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }\n\n#source p .t:hover ~ .r .annotate.long { display: block; }\n\n#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }\n\n@media (prefers-color-scheme: dark) { #source p .t .com { color: #6A9955; } }\n\n#source p .t .key { font-weight: bold; line-height: 1px; }\n\n#source p .t .str { color: #0451A5; }\n\n@media (prefers-color-scheme: dark) { #source p .t .str { color: #9CDCFE; } }\n\n#source p.mis .t { border-left: 0.2em solid #ff0000; }\n\n#source p.mis.show_mis .t { background: #fdd; }\n\n@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }\n\n#source p.mis.show_mis .t:hover { background: #f2d2d2; }\n\n@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }\n\n#source p.run .t { border-left: 0.2em solid #00dd00; }\n\n#source p.run.show_run .t { background: #dfd; }\n\n@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }\n\n#source p.run.show_run .t:hover { background: #d2f2d2; }\n\n@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }\n\n#source p.exc .t { border-left: 0.2em solid #808080; }\n\n#source p.exc.show_exc .t { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }\n\n#source p.exc.show_exc .t:hover { background: #e2e2e2; }\n\n@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }\n\n#source p.par .t { border-left: 0.2em solid #dddd00; }\n\n#source p.par.show_par .t { background: #ffa; }\n\n@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }\n\n#source p.par.show_par .t:hover { background: #f2f2a2; }\n\n@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }\n\n#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; }\n\n#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; color: #666; padding-right: .5em; }\n\n@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }\n\n#source p .annotate.short:hover ~ .long { display: block; }\n\n#source p .annotate.long { width: 30em; right: 2.5em; }\n\n#source p input { display: none; }\n\n#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }\n\n#source p input ~ .r label.ctx::before { content: \"▶ \"; }\n\n#source p input ~ .r label.ctx:hover { background: #d5f7ff; color: #666; }\n\n@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } }\n\n@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } }\n\n#source p input:checked ~ .r label.ctx { background: #aef; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }\n\n@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } }\n\n@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } }\n\n#source p input:checked ~ .r label.ctx::before { content: \"▼ \"; }\n\n#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }\n\n#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }\n\n@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }\n\n#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; white-space: nowrap; background: #aef; border-radius: .25em; margin-right: 1.75em; }\n\n@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } }\n\n#source p .ctxs span { display: block; text-align: right; }\n\n#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }\n\n#index table.index { margin-left: -.5em; }\n\n#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }\n\n@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }\n\n#index td.name, #index th.name { text-align: left; width: auto; }\n\n#index th { font-style: italic; color: #333; cursor: pointer; }\n\n@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }\n\n#index th:hover { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }\n\n#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }\n\n#index th.headerSortDown:after { content: \" ↑\"; }\n\n#index th.headerSortUp:after { content: \" ↓\"; }\n\n#index td.name a { text-decoration: none; color: inherit; }\n\n#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }\n\n#index tr.file:hover { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index tr.file:hover { background: #333; } }\n\n#index tr.file:hover td.name { text-decoration: underline; color: inherit; }\n\n#scroll_marker { position: fixed; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }\n\n@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }\n\n#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }\n\n@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/requirements.txt",
    "content": "asgiref==3.3.4\ncoverage==5.5\nDjango==3.2\ndjango-cors-headers==3.7.0\ndjangorestframework==3.12.4\npytz==2021.1\nsqlparse==0.4.1\ngunicorn==20.1.0"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/django/templates/blog/index.html",
    "content": "//index"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/docker-compose.yml",
    "content": "version: '3'\n\nservices:\n  backend:\n    build:\n      context: ./django\n    command: gunicorn core.wsgi --bind 0.0.0.0:8000\n    ports:\n      - \"8000:8000\"\n  frontend:\n    build:\n      context: ./react/blogapi\n    volumes:\n      - react_build:/react/build\n  nginx:\n    image: nginx:latest\n    ports:\n      - 80:8080\n    volumes:\n      - ./nginx/nginx-setup.conf:/etc/nginx/conf.d/default.conf:ro\n      - react_build:/var/www/react\n    depends_on:\n      - backend\n      - frontend\nvolumes:\n  react_build:"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/nginx/nginx-setup.conf",
    "content": "upstream api {\n    server backend:8000;\n}\n\nserver {\n  listen 8080;\n\n  location / {\n    root /var/www/react;\n  }\n\n  location /api/ {\n    proxy_pass http://api;\n    proxy_set_header Host $http_host;\n  }\n\n\n}"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/build\n\n# misc\n.DS_Store\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/Dockerfile",
    "content": "FROM node:15.13-alpine\nWORKDIR /react\nCOPY . .\nRUN npm run build"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/README.md",
    "content": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.<br />\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.<br />\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.<br />\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.<br />\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.<br />\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `npm run build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/package.json",
    "content": "{\n  \"name\": \"blogapi\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@material-ui/core\": \"^4.11.0\",\n    \"@testing-library/jest-dom\": \"^4.2.4\",\n    \"@testing-library/react\": \"^9.5.0\",\n    \"@testing-library/user-event\": \"^7.2.1\",\n    \"react\": \"^16.13.1\",\n    \"react-dom\": \"^16.13.1\",\n    \"react-router-dom\": \"^5.2.0\",\n    \"react-scripts\": \"3.4.3\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test\",\n    \"eject\": \"react-scripts eject\"\n  },\n  \"eslintConfig\": {\n    \"extends\": \"react-app\"\n  },\n  \"browserslist\": {\n    \"production\": [\n      \">0.2%\",\n      \"not dead\",\n      \"not op_mini all\"\n    ],\n    \"development\": [\n      \"last 1 chrome version\",\n      \"last 1 firefox version\",\n      \"last 1 safari version\"\n    ]\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/public/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <link rel=\"icon\" href=\"%PUBLIC_URL%/favicon.ico\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <meta name=\"theme-color\" content=\"#000000\" />\n    <meta\n      name=\"description\"\n      content=\"Web site created using create-react-app\"\n    />\n    <link rel=\"apple-touch-icon\" href=\"%PUBLIC_URL%/logo192.png\" />\n    <!--\n      manifest.json provides metadata used when your web app is installed on a\n      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n    -->\n    <link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\" />\n    <!--\n      Notice the use of %PUBLIC_URL% in the tags above.\n      It will be replaced with the URL of the `public` folder during the build.\n      Only files inside the `public` folder can be referenced from the HTML.\n\n      Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n      work correctly both with client-side routing and a non-root public URL.\n      Learn how to configure a non-root public URL by running `npm run build`.\n    -->\n    <title>React App</title>\n  </head>\n  <body>\n    <noscript>You need to enable JavaScript to run this app.</noscript>\n    <div id=\"root\"></div>\n    <!--\n      This HTML file is a template.\n      If you open it directly in the browser, you will see an empty page.\n\n      You can add webfonts, meta tags, or analytics to this file.\n      The build step will place the bundled scripts into the <body> tag.\n\n      To begin the development, run `npm start` or `yarn start`.\n      To create a production bundle, use `npm run build` or `yarn build`.\n    -->\n  </body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/public/manifest.json",
    "content": "{\n  \"short_name\": \"React App\",\n  \"name\": \"Create React App Sample\",\n  \"icons\": [\n    {\n      \"src\": \"favicon.ico\",\n      \"sizes\": \"64x64 32x32 24x24 16x16\",\n      \"type\": \"image/x-icon\"\n    },\n    {\n      \"src\": \"logo192.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"192x192\"\n    },\n    {\n      \"src\": \"logo512.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"512x512\"\n    }\n  ],\n  \"start_url\": \".\",\n  \"display\": \"standalone\",\n  \"theme_color\": \"#000000\",\n  \"background_color\": \"#ffffff\"\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/public/robots.txt",
    "content": "# https://www.robotstxt.org/robotstxt.html\nUser-agent: *\nDisallow:\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/App.css",
    "content": ".App {\n  text-align: center;\n}\n\n.App-logo {\n  height: 40vmin;\n  pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n  .App-logo {\n    animation: App-logo-spin infinite 20s linear;\n  }\n}\n\n.App-header {\n  background-color: #282c34;\n  min-height: 100vh;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  font-size: calc(10px + 2vmin);\n  color: white;\n}\n\n.App-link {\n  color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/App.js",
    "content": "import React, { useEffect, useState } from 'react';\nimport './App.css';\nimport Posts from './components/Posts';\nimport PostLoadingComponent from './components/PostLoading';\n\nfunction App() {\n\tconst PostLoading = PostLoadingComponent(Posts);\n\tconst [appState, setAppState] = useState({\n\t\tloading: false,\n\t\tposts: null,\n\t});\n\n\tuseEffect(() => {\n\t\tsetAppState({ loading: true });\n\t\tconst apiUrl = `http://127.0.0.1/api/`;\n\t\tfetch(apiUrl)\n\t\t\t.then((data) => data.json())\n\t\t\t.then((posts) => {\n\t\t\t\tsetAppState({ loading: false, posts: posts });\n\t\t\t});\n\t}, [setAppState]);\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<h1>Latest Posts</h1>\n\t\t\t<PostLoading isLoading={appState.loading} posts={appState.posts} />\n\t\t</div>\n\t);\n}\nexport default App;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/App.test.js",
    "content": "import React from 'react';\nimport { render } from '@testing-library/react';\nimport App from './App';\n\ntest('renders learn react link', () => {\n  const { getByText } = render(<App />);\n  const linkElement = getByText(/learn react/i);\n  expect(linkElement).toBeInTheDocument();\n});\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/components/Footer.js",
    "content": "import React from 'react';\nimport Container from '@material-ui/core/Container';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport Grid from '@material-ui/core/Grid';\nimport Link from '@material-ui/core/Link';\nimport Box from '@material-ui/core/Box';\n\nconst useStyles = makeStyles((theme) => ({\n\tfooter: {\n\t\tborderTop: `1px solid ${theme.palette.divider}`,\n\t\tmarginTop: theme.spacing(8),\n\t\tpaddingTop: theme.spacing(3),\n\t\tpaddingBottom: theme.spacing(3),\n\t\t[theme.breakpoints.up('sm')]: {\n\t\t\tpaddingTop: theme.spacing(6),\n\t\t\tpaddingBottom: theme.spacing(6),\n\t\t},\n\t},\n}));\n\nfunction Copyright() {\n\treturn (\n\t\t<Typography variant=\"body2\" color=\"textSecondary\" align=\"center\">\n\t\t\t{'Copyright © '}\n\t\t\t<Link color=\"inherit\" href=\"https://material-ui.com/\">\n\t\t\t\tYour Website\n\t\t\t</Link>{' '}\n\t\t\t{new Date().getFullYear()}\n\t\t\t{'.'}\n\t\t</Typography>\n\t);\n}\n\nconst footers = [\n\t{\n\t\ttitle: 'Company',\n\t\tdescription: ['Team', 'History', 'Contact us', 'Locations'],\n\t},\n\t{\n\t\ttitle: 'Features',\n\t\tdescription: [\n\t\t\t'Cool stuff',\n\t\t\t'Random feature',\n\t\t\t'Team feature',\n\t\t\t'Developer stuff',\n\t\t\t'Another one',\n\t\t],\n\t},\n\t{\n\t\ttitle: 'Resources',\n\t\tdescription: [\n\t\t\t'Resource',\n\t\t\t'Resource name',\n\t\t\t'Another resource',\n\t\t\t'Final resource',\n\t\t],\n\t},\n\t{\n\t\ttitle: 'Legal',\n\t\tdescription: ['Privacy policy', 'Terms of use'],\n\t},\n];\n\nfunction Footer() {\n\tconst classes = useStyles();\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Container maxWidth=\"md\" component=\"footer\" className={classes.footer}>\n\t\t\t\t<Grid container spacing={4} justify=\"space-evenly\">\n\t\t\t\t\t{footers.map((footer) => (\n\t\t\t\t\t\t<Grid item xs={6} sm={3} key={footer.title}>\n\t\t\t\t\t\t\t<Typography variant=\"h6\" color=\"textPrimary\" gutterBottom>\n\t\t\t\t\t\t\t\t{footer.title}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t{footer.description.map((item) => (\n\t\t\t\t\t\t\t\t\t<li key={item}>\n\t\t\t\t\t\t\t\t\t\t<Link href=\"#\" variant=\"subtitle1\" color=\"textSecondary\">\n\t\t\t\t\t\t\t\t\t\t\t{item}\n\t\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t))}\n\t\t\t\t</Grid>\n\t\t\t\t<Box mt={5}>\n\t\t\t\t\t<Copyright />\n\t\t\t\t</Box>\n\t\t\t</Container>\n\t\t</React.Fragment>\n\t);\n}\n\nexport default Footer;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/components/Header.js",
    "content": "import React from 'react';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n\tappBar: {\n\t\tborderBottom: `1px solid ${theme.palette.divider}`,\n\t},\n}));\n\nfunction Header() {\n\tconst classes = useStyles();\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<CssBaseline />\n\t\t\t<AppBar\n\t\t\t\tposition=\"static\"\n\t\t\t\tcolor=\"white\"\n\t\t\t\televation={0}\n\t\t\t\tclassName={classes.appBar}\n\t\t\t>\n\t\t\t\t<Toolbar>\n\t\t\t\t\t<Typography variant=\"h6\" color=\"inherit\" noWrap>\n\t\t\t\t\t\tBlogmeUp\n\t\t\t\t\t</Typography>\n\t\t\t\t</Toolbar>\n\t\t\t</AppBar>\n\t\t</React.Fragment>\n\t);\n}\n\nexport default Header;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/components/PostLoading.js",
    "content": "import React from 'react';\n\nfunction PostLoading(Component) {\n\treturn function PostLoadingComponent({ isLoading, ...props }) {\n\t\tif (!isLoading) return <Component {...props} />;\n\t\treturn (\n\t\t\t<p style={{ fontSize: '25px' }}>\n\t\t\t\tWe are waiting for the data to load!...\n\t\t\t</p>\n\t\t);\n\t};\n}\nexport default PostLoading;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/components/Posts.js",
    "content": "import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport Container from '@material-ui/core/Container';\n\nconst useStyles = makeStyles((theme) => ({\n\tcardMedia: {\n\t\tpaddingTop: '56.25%', // 16:9\n\t},\n\tlink: {\n\t\tmargin: theme.spacing(1, 1.5),\n\t},\n\tcardHeader: {\n\t\tbackgroundColor:\n\t\t\ttheme.palette.type === 'light'\n\t\t\t\t? theme.palette.grey[200]\n\t\t\t\t: theme.palette.grey[700],\n\t},\n\tpostTitle: {\n\t\tfontSize: '16px',\n\t\ttextAlign: 'left',\n\t},\n\tpostText: {\n\t\tdisplay: 'flex',\n\t\tjustifyContent: 'left',\n\t\talignItems: 'baseline',\n\t\tfontSize: '12px',\n\t\ttextAlign: 'left',\n\t\tmarginBottom: theme.spacing(2),\n\t},\n}));\n\nconst Posts = (props) => {\n\tconst { posts } = props;\n\tconst classes = useStyles();\n\tif (!posts || posts.length === 0) return <p>Can not find any posts, sorry</p>;\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Container maxWidth=\"md\" component=\"main\">\n\t\t\t\t<Grid container spacing={5} alignItems=\"flex-end\">\n\t\t\t\t\t{posts.map((post) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t// Enterprise card is full width at sm breakpoint\n\t\t\t\t\t\t\t<Grid item key={post.id} xs={12} md={4}>\n\t\t\t\t\t\t\t\t<Card className={classes.card}>\n\t\t\t\t\t\t\t\t\t<CardMedia\n\t\t\t\t\t\t\t\t\t\tclassName={classes.cardMedia}\n\t\t\t\t\t\t\t\t\t\timage=\"https://source.unsplash.com/random\"\n\t\t\t\t\t\t\t\t\t\ttitle=\"Image title\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<CardContent className={classes.cardContent}>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\tgutterBottom\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"h6\"\n\t\t\t\t\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\t\t\t\t\tclassName={classes.postTitle}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{post.title.substr(0, 50)}...\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t<div className={classes.postText}>\n\t\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\t\tcomponent=\"p\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"textPrimary\"\n\t\t\t\t\t\t\t\t\t\t\t></Typography>\n\t\t\t\t\t\t\t\t\t\t\t<Typography variant=\"p\" color=\"textSecondary\">\n\t\t\t\t\t\t\t\t\t\t\t\t{post.excerpt.substr(0, 60)}...\n\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</CardContent>\n\t\t\t\t\t\t\t\t</Card>\n\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</Grid>\n\t\t\t</Container>\n\t\t</React.Fragment>\n\t);\n};\nexport default Posts;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/index.css",
    "content": "body {\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n    sans-serif;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n    monospace;\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/index.js",
    "content": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport * as serviceWorker from './serviceWorker';\nimport './index.css';\nimport { Route, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport App from './App';\nimport Header from './components/Header';\nimport Footer from './components/Footer';\n\nconst routing = (\n\t<Router>\n\t\t<React.StrictMode>\n\t\t\t<Header />\n\t\t\t<Switch>\n\t\t\t\t<Route exact path=\"/\" component={App} />\n\t\t\t</Switch>\n\t\t\t<Footer />\n\t\t</React.StrictMode>\n\t</Router>\n);\n\nReactDOM.render(routing, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/serviceWorker.js",
    "content": "// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n  window.location.hostname === 'localhost' ||\n    // [::1] is the IPv6 localhost address.\n    window.location.hostname === '[::1]' ||\n    // 127.0.0.0/8 are considered localhost for IPv4.\n    window.location.hostname.match(\n      /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n    )\n);\n\nexport function register(config) {\n  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n    // The URL constructor is available in all browsers that support SW.\n    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n    if (publicUrl.origin !== window.location.origin) {\n      // Our service worker won't work if PUBLIC_URL is on a different origin\n      // from what our page is served on. This might happen if a CDN is used to\n      // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n      return;\n    }\n\n    window.addEventListener('load', () => {\n      const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n      if (isLocalhost) {\n        // This is running on localhost. Let's check if a service worker still exists or not.\n        checkValidServiceWorker(swUrl, config);\n\n        // Add some additional logging to localhost, pointing developers to the\n        // service worker/PWA documentation.\n        navigator.serviceWorker.ready.then(() => {\n          console.log(\n            'This web app is being served cache-first by a service ' +\n              'worker. To learn more, visit https://bit.ly/CRA-PWA'\n          );\n        });\n      } else {\n        // Is not localhost. Just register service worker\n        registerValidSW(swUrl, config);\n      }\n    });\n  }\n}\n\nfunction registerValidSW(swUrl, config) {\n  navigator.serviceWorker\n    .register(swUrl)\n    .then(registration => {\n      registration.onupdatefound = () => {\n        const installingWorker = registration.installing;\n        if (installingWorker == null) {\n          return;\n        }\n        installingWorker.onstatechange = () => {\n          if (installingWorker.state === 'installed') {\n            if (navigator.serviceWorker.controller) {\n              // At this point, the updated precached content has been fetched,\n              // but the previous service worker will still serve the older\n              // content until all client tabs are closed.\n              console.log(\n                'New content is available and will be used when all ' +\n                  'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n              );\n\n              // Execute callback\n              if (config && config.onUpdate) {\n                config.onUpdate(registration);\n              }\n            } else {\n              // At this point, everything has been precached.\n              // It's the perfect time to display a\n              // \"Content is cached for offline use.\" message.\n              console.log('Content is cached for offline use.');\n\n              // Execute callback\n              if (config && config.onSuccess) {\n                config.onSuccess(registration);\n              }\n            }\n          }\n        };\n      };\n    })\n    .catch(error => {\n      console.error('Error during service worker registration:', error);\n    });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n  // Check if the service worker can be found. If it can't reload the page.\n  fetch(swUrl, {\n    headers: { 'Service-Worker': 'script' },\n  })\n    .then(response => {\n      // Ensure service worker exists, and that we really are getting a JS file.\n      const contentType = response.headers.get('content-type');\n      if (\n        response.status === 404 ||\n        (contentType != null && contentType.indexOf('javascript') === -1)\n      ) {\n        // No service worker found. Probably a different app. Reload the page.\n        navigator.serviceWorker.ready.then(registration => {\n          registration.unregister().then(() => {\n            window.location.reload();\n          });\n        });\n      } else {\n        // Service worker found. Proceed as normal.\n        registerValidSW(swUrl, config);\n      }\n    })\n    .catch(() => {\n      console.log(\n        'No internet connection found. App is running in offline mode.'\n      );\n    });\n}\n\nexport function unregister() {\n  if ('serviceWorker' in navigator) {\n    navigator.serviceWorker.ready\n      .then(registration => {\n        registration.unregister();\n      })\n      .catch(error => {\n        console.error(error.message);\n      });\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Final/react/blogapi/src/setupTests.js",
    "content": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nimport '@testing-library/jest-dom/extend-expect';\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/.gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/admin.py",
    "content": "from django.contrib import admin\nfrom . import models\n\n\n@admin.register(models.Post)\nclass AuthorAdmin(admin.ModelAdmin):\n    list_display = ('title', 'id', 'status', 'slug', 'author')\n    prepopulated_fields = {'slug': ('title',), }\n\n\nadmin.site.register(models.Category)\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass BlogConfig(AppConfig):\n    name = 'blog'\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/migrations/0001_initial.py",
    "content": "# Generated by Django 3.1.1 on 2020-09-09 20:53\n\nfrom django.conf import settings\nfrom django.db import migrations, models\nimport django.db.models.deletion\nimport django.utils.timezone\n\n\nclass Migration(migrations.Migration):\n\n    initial = True\n\n    dependencies = [\n        migrations.swappable_dependency(settings.AUTH_USER_MODEL),\n    ]\n\n    operations = [\n        migrations.CreateModel(\n            name='Category',\n            fields=[\n                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('name', models.CharField(max_length=100)),\n            ],\n        ),\n        migrations.CreateModel(\n            name='Post',\n            fields=[\n                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('title', models.CharField(max_length=250)),\n                ('excerpt', models.TextField(null=True)),\n                ('content', models.TextField()),\n                ('slug', models.SlugField(max_length=250, unique_for_date='publish')),\n                ('published', models.DateTimeField(default=django.utils.timezone.now)),\n                ('status', models.CharField(choices=[('draft', 'Draft'), ('published', 'Published')], default='published', max_length=10)),\n                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL)),\n                ('category', models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='blog.category')),\n            ],\n            options={\n                'ordering': ('-published',),\n            },\n        ),\n    ]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/models.py",
    "content": "from django.db import models\nfrom django.contrib.auth.models import User\nfrom django.utils import timezone\n\n\nclass Category(models.Model):\n    name = models.CharField(max_length=100)\n\n    def __str__(self):\n        return self.name\n\n\nclass Post(models.Model):\n\n    class PostObjects(models.Manager):\n        def get_queryset(self):\n            return super().get_queryset() .filter(status='published')\n\n    options = (\n        ('draft', 'Draft'),\n        ('published', 'Published'),\n    )\n    category = models.ForeignKey(\n        Category, on_delete=models.PROTECT, default=1)\n    title = models.CharField(max_length=250)\n    excerpt = models.TextField(null=True)\n    content = models.TextField()\n    slug = models.SlugField(max_length=250, unique_for_date='published')\n    published = models.DateTimeField(default=timezone.now)\n    author = models.ForeignKey(\n        User, on_delete=models.CASCADE, related_name='blog_posts')\n    status = models.CharField(\n        max_length=10, choices=options, default='published')\n    objects = models.Manager()  # default manager\n    postobjects = PostObjects()  # custom manager\n\n    class Meta:\n        ordering = ('-published',)\n\n    def __str__(self):\n        return self.title\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/tests.py",
    "content": "from django.test import TestCase\nfrom django.contrib.auth.models import User\nfrom blog.models import Post, Category\n\n\nclass Test_Create_Post(TestCase):\n\n    @classmethod\n    def setUpTestData(cls):\n        test_category = Category.objects.create(name='django')\n\n        testuser1 = User.objects.create_user(\n            username='test_user1', password='123456789')\n        testuser1.save()\n\n        test_post = Post.objects.create(\n            category_id=1, title='Post Title', excerpt='Post Excerpt', content='Post Content', slug='post-title', author_id=1, status='published')\n        test_post.save()\n\n    def test_blog_content(self):\n        post = Post.postobjects.get(id=1)\n        cat = Category.objects.get(id=1)\n        author = f'{post.author}'\n        excerpt = f'{post.excerpt}'\n        title = f'{post.title}'\n        content = f'{post.content}'\n        status = f'{post.status}'\n        self.assertEqual(author, 'test_user1')\n        self.assertEqual(title, 'Post Title')\n        self.assertEqual(content, 'Post Content')\n        self.assertEqual(status, 'published')\n        self.assertEqual(str(post), \"Post Title\")\n        self.assertEqual(str(cat), \"django\")\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog/urls.py",
    "content": "from django.urls import path\nfrom django.views.generic import TemplateView\n\napp_name = 'blog'\n\nurlpatterns = [\n    path('', TemplateView.as_view(template_name=\"blog/index.html\")),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/admin.py",
    "content": "from django.contrib import admin\n\n# Register your models here.\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/apps.py",
    "content": "from django.apps import AppConfig\n\n\nclass BlogApiConfig(AppConfig):\n    name = 'blog_api'\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/migrations/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/models.py",
    "content": "from django.db import models\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/serializers.py",
    "content": "from rest_framework import serializers\nfrom blog.models import Post\n\n\nclass PostSerializer(serializers.ModelSerializer):\n    class Meta:\n        fields = ('id', 'title', 'author', 'excerpt', 'content', 'status')\n        model = Post\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/tests.py",
    "content": "from django.urls import reverse\nfrom rest_framework import status\nfrom rest_framework.test import APITestCase\nfrom blog.models import Post, Category\nfrom django.contrib.auth.models import User\n\n\nclass PostTests(APITestCase):\n\n    def test_view_posts(self):\n        \"\"\"\n        Ensure we can view all objects.\n        \"\"\"\n        url = reverse('blog_api:listcreate')\n        response = self.client.get(url, format='json')\n        self.assertEqual(response.status_code, status.HTTP_200_OK)\n\n    def test_create_account(self):\n        \"\"\"\n        Ensure we can create a new Post object and view object.\n        \"\"\"\n        self.test_category = Category.objects.create(name='django')\n\n        self.testuser1 = User.objects.create_user(\n            username='test_user1', password='123456789')\n\n        data = {\"title\": \"new\", \"author\": 1,\n                \"excerpt\": \"new\", \"content\": \"new\"}\n        url = reverse('blog_api:listcreate')\n        response = self.client.post(url, data, format='json')\n        self.assertEqual(response.status_code, status.HTTP_201_CREATED)\n        self.assertEqual(len(response.data), 6)\n        root = reverse(('blog_api:detailcreate'), kwargs={'pk': 1})\n        response = self.client.get(url, format='json')\n        self.assertEqual(response.status_code, status.HTTP_200_OK)\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/urls.py",
    "content": "from django.urls import path\nfrom .views import PostList, PostDetail\n\napp_name = 'blog_api'\n\nurlpatterns = [\n    path('<int:pk>/', PostDetail.as_view(), name='detailcreate'),\n    path('', PostList.as_view(), name='listcreate'),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/blog_api/views.py",
    "content": "from rest_framework import generics\nfrom blog.models import Post\nfrom .serializers import PostSerializer\n\n\nclass PostList(generics.ListCreateAPIView):\n    queryset = Post.objects.all()\n    serializer_class = PostSerializer\n\n\nclass PostDetail(generics.RetrieveDestroyAPIView):\n    queryset = Post.objects.all()\n    serializer_class = PostSerializer\n\n\n\"\"\" Concrete View Classes\n#CreateAPIView\nUsed for create-only endpoints.\n#ListAPIView\nUsed for read-only endpoints to represent a collection of model instances.\n#RetrieveAPIView\nUsed for read-only endpoints to represent a single model instance.\n#DestroyAPIView\nUsed for delete-only endpoints for a single model instance.\n#UpdateAPIView\nUsed for update-only endpoints for a single model instance.\n##ListCreateAPIView\nUsed for read-write endpoints to represent a collection of model instances.\nRetrieveUpdateAPIView\nUsed for read or update endpoints to represent a single model instance.\n#RetrieveDestroyAPIView\nUsed for read or delete endpoints to represent a single model instance.\n#RetrieveUpdateDestroyAPIView\nUsed for read-write-delete endpoints to represent a single model instance.\n\"\"\"\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/commands.txt",
    "content": "py manage.py makemigrations --dry-run --verbosity 3\npy manage.py runserver\npy manage.py createsuperuser \npip install coverage\ncoverage run --omit='*/venv/*' manage.py test\ncoverage html\npip install djangorestframework"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/core/__init__.py",
    "content": ""
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/core/asgi.py",
    "content": "\"\"\"\nASGI config for core project.\n\nIt exposes the ASGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/asgi/\n\"\"\"\n\nimport os\n\nfrom django.core.asgi import get_asgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_asgi_application()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/core/settings.py",
    "content": "\"\"\"\nDjango settings for core project.\n\nGenerated by 'django-admin startproject' using Django 3.1.1.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/topics/settings/\n\nFor the full list of settings and their values, see\nhttps://docs.djangoproject.com/en/3.1/ref/settings/\n\"\"\"\n\nfrom pathlib import Path\n\n# Build paths inside the project like this: BASE_DIR / 'subdir'.\nBASE_DIR = Path(__file__).resolve().parent.parent\n\n\n# Quick-start development settings - unsuitable for production\n# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/\n\n# SECURITY WARNING: keep the secret key used in production secret!\nSECRET_KEY = 'o$&u%nbd)@uta53xz=zl1(3icpuhun2%pz(17^6lbgf(g%qa#f'\n\n# SECURITY WARNING: don't run with debug turned on in production!\nDEBUG = True\n\nALLOWED_HOSTS = []\n\n\n# Application definition\n\nINSTALLED_APPS = [\n    'django.contrib.admin',\n    'django.contrib.auth',\n    'django.contrib.contenttypes',\n    'django.contrib.sessions',\n    'django.contrib.messages',\n    'django.contrib.staticfiles',\n    'blog',\n    'blog_api',\n    'rest_framework',\n    'corsheaders',\n]\n\nMIDDLEWARE = [\n    'django.middleware.security.SecurityMiddleware',\n    'django.contrib.sessions.middleware.SessionMiddleware',\n    'corsheaders.middleware.CorsMiddleware',\n    'django.middleware.common.CommonMiddleware',\n    'django.middleware.csrf.CsrfViewMiddleware',\n    'django.contrib.auth.middleware.AuthenticationMiddleware',\n    'django.contrib.messages.middleware.MessageMiddleware',\n    'django.middleware.clickjacking.XFrameOptionsMiddleware',\n]\n\nROOT_URLCONF = 'core.urls'\n\nTEMPLATES = [\n    {\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\n        'DIRS': [BASE_DIR / 'templates'],\n        'APP_DIRS': True,\n        'OPTIONS': {\n            'context_processors': [\n                'django.template.context_processors.debug',\n                'django.template.context_processors.request',\n                'django.contrib.auth.context_processors.auth',\n                'django.contrib.messages.context_processors.messages',\n            ],\n        },\n    },\n]\n\nWSGI_APPLICATION = 'core.wsgi.application'\n\n\n# Database\n# https://docs.djangoproject.com/en/3.1/ref/settings/#databases\n\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.sqlite3',\n        'NAME': BASE_DIR / 'db.sqlite3',\n    }\n}\n\n\n# Password validation\n# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators\n\nAUTH_PASSWORD_VALIDATORS = [\n    {\n        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',\n    },\n    {\n        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',\n    },\n]\n\n\n# Internationalization\n# https://docs.djangoproject.com/en/3.1/topics/i18n/\n\nLANGUAGE_CODE = 'en-us'\n\nTIME_ZONE = 'UTC'\n\nUSE_I18N = True\n\nUSE_L10N = True\n\nUSE_TZ = True\n\n\n# Static files (CSS, JavaScript, Images)\n# https://docs.djangoproject.com/en/3.1/howto/static-files/\n\nSTATIC_URL = '/static/'\n\n\nREST_FRAMEWORK = {\n    'DEFAULT_PERMISSION_CLASSES': [\n        'rest_framework.permissions.AllowAny',\n    ]\n}\n\nCORS_ALLOWED_ORIGINS = [\n    \"http://127.0.0.1:3000\",\n    \"http://localhost:3000\"\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/core/urls.py",
    "content": "\"\"\"core URL Configuration\n\nThe `urlpatterns` list routes URLs to views. For more information please see:\n    https://docs.djangoproject.com/en/3.1/topics/http/urls/\nExamples:\nFunction views\n    1. Add an import:  from my_app import views\n    2. Add a URL to urlpatterns:  path('', views.home, name='home')\nClass-based views\n    1. Add an import:  from other_app.views import Home\n    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')\nIncluding another URLconf\n    1. Import the include() function: from django.urls import include, path\n    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))\n\"\"\"\nfrom django.contrib import admin\nfrom django.urls import path, include\n\nurlpatterns = [\n    path('admin/', admin.site.urls),\n    path('', include('blog.urls', namespace='blog')),\n    path('api/', include('blog_api.urls', namespace='blog_api')),\n]\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/core/wsgi.py",
    "content": "\"\"\"\nWSGI config for core project.\n\nIt exposes the WSGI callable as a module-level variable named ``application``.\n\nFor more information on this file, see\nhttps://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/\n\"\"\"\n\nimport os\n\nfrom django.core.wsgi import get_wsgi_application\n\nos.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n\napplication = get_wsgi_application()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_admin_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\admin.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\admin.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            7 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">7 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"op\">@</span><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">register</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Post</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">AuthorAdmin</span><span class=\"op\">(</span><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">ModelAdmin</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">list_display</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"str\">'status'</span><span class=\"op\">,</span> <span class=\"str\">'slug'</span><span class=\"op\">,</span> <span class=\"str\">'author'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">prepopulated_fields</span> <span class=\"op\">=</span> <span class=\"op\">{</span><span class=\"str\">'slug'</span><span class=\"op\">:</span> <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">site</span><span class=\"op\">.</span><span class=\"nam\">register</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Category</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_admin_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\admin.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\admin.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"com\"># Register your models here.</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_migrations___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\migrations\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\migrations\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_models_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\models.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\models.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_serializers_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\serializers.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\serializers.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            6 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">6 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">rest_framework</span> <span class=\"key\">import</span> <span class=\"nam\">serializers</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostSerializer</span><span class=\"op\">(</span><span class=\"nam\">serializers</span><span class=\"op\">.</span><span class=\"nam\">ModelSerializer</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">Meta</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">        <span class=\"nam\">fields</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"str\">'author'</span><span class=\"op\">,</span> <span class=\"str\">'excerpt'</span><span class=\"op\">,</span> <span class=\"str\">'content'</span><span class=\"op\">,</span> <span class=\"str\">'status'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">        <span class=\"nam\">model</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_tests_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\tests.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\tests.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            1 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">1 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">test</span> <span class=\"key\">import</span> <span class=\"nam\">TestCase</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"com\"># Create your tests here.</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            4 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">4 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span><span class=\"nam\">views</span> <span class=\"key\">import</span> <span class=\"nam\">PostList</span><span class=\"op\">,</span> <span class=\"nam\">PostDetail</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"nam\">app_name</span> <span class=\"op\">=</span> <span class=\"str\">'blog_api'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'&lt;int:pk>/'</span><span class=\"op\">,</span> <span class=\"nam\">PostDetail</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">PostList</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_api_views_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog_api\\views.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog_api\\views.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            10 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">10 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">rest_framework</span> <span class=\"key\">import</span> <span class=\"nam\">generics</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"op\">.</span><span class=\"nam\">serializers</span> <span class=\"key\">import</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostList</span><span class=\"op\">(</span><span class=\"nam\">generics</span><span class=\"op\">.</span><span class=\"nam\">ListCreateAPIView</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">queryset</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">all</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"nam\">serializer_class</span> <span class=\"op\">=</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">PostDetail</span><span class=\"op\">(</span><span class=\"nam\">generics</span><span class=\"op\">.</span><span class=\"nam\">RetrieveDestroyAPIView</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"run\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">    <span class=\"nam\">queryset</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">all</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">    <span class=\"nam\">serializer_class</span> <span class=\"op\">=</span> <span class=\"nam\">PostSerializer</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"str\">\"\"\" Concrete View Classes</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\"><span class=\"str\">#CreateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\"><span class=\"str\">Used for create-only endpoints.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"str\">#ListAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\"><span class=\"str\">Used for read-only endpoints to represent a collection of model instances.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\"><span class=\"str\">#RetrieveAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\"><span class=\"str\">Used for read-only endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"str\">#DestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\"><span class=\"str\">Used for delete-only endpoints for a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\"><span class=\"str\">#UpdateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"pln\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\"><span class=\"str\">Used for update-only endpoints for a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\"><span class=\"str\">##ListCreateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"pln\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\"><span class=\"str\">Used for read-write endpoints to represent a collection of model instances.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\"><span class=\"str\">RetrieveUpdateAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\"><span class=\"str\">Used for read or update endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\"><span class=\"str\">#RetrieveDestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\"><span class=\"str\">Used for read or delete endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\"><span class=\"str\">#RetrieveUpdateDestroyAPIView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\"><span class=\"str\">Used for read-write-delete endpoints to represent a single model instance.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_migrations_0001_initial_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\migrations\\0001_initial.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\migrations\\0001_initial.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            8 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">8 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"com\"># Generated by Django 3.1.1 on 2020-09-09 20:53</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">conf</span> <span class=\"key\">import</span> <span class=\"nam\">settings</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">migrations</span><span class=\"op\">,</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"run\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span><span class=\"op\">.</span><span class=\"nam\">timezone</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Migration</span><span class=\"op\">(</span><span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">Migration</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">    <span class=\"nam\">initial</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">    <span class=\"nam\">dependencies</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">swappable_dependency</span><span class=\"op\">(</span><span class=\"nam\">settings</span><span class=\"op\">.</span><span class=\"nam\">AUTH_USER_MODEL</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"pln\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">    <span class=\"nam\">operations</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">CreateModel</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">            <span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'Category'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">            <span class=\"nam\">fields</span><span class=\"op\">=</span><span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">AutoField</span><span class=\"op\">(</span><span class=\"nam\">auto_created</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">primary_key</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">serialize</span><span class=\"op\">=</span><span class=\"key\">False</span><span class=\"op\">,</span> <span class=\"nam\">verbose_name</span><span class=\"op\">=</span><span class=\"str\">'ID'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'name'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">100</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">        <span class=\"nam\">migrations</span><span class=\"op\">.</span><span class=\"nam\">CreateModel</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"pln\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">            <span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'Post'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">            <span class=\"nam\">fields</span><span class=\"op\">=</span><span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"pln\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'id'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">AutoField</span><span class=\"op\">(</span><span class=\"nam\">auto_created</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">primary_key</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">,</span> <span class=\"nam\">serialize</span><span class=\"op\">=</span><span class=\"key\">False</span><span class=\"op\">,</span> <span class=\"nam\">verbose_name</span><span class=\"op\">=</span><span class=\"str\">'ID'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'title'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'excerpt'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"nam\">null</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'content'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'slug'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">SlugField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">,</span> <span class=\"nam\">unique_for_date</span><span class=\"op\">=</span><span class=\"str\">'publish'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">DateTimeField</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span><span class=\"op\">.</span><span class=\"nam\">timezone</span><span class=\"op\">.</span><span class=\"nam\">now</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'status'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">choices</span><span class=\"op\">=</span><span class=\"op\">[</span><span class=\"op\">(</span><span class=\"str\">'draft'</span><span class=\"op\">,</span> <span class=\"str\">'Draft'</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"str\">'Published'</span><span class=\"op\">)</span><span class=\"op\">]</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">10</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'author'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span><span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span><span class=\"op\">.</span><span class=\"nam\">CASCADE</span><span class=\"op\">,</span> <span class=\"nam\">related_name</span><span class=\"op\">=</span><span class=\"str\">'blog_posts'</span><span class=\"op\">,</span> <span class=\"nam\">to</span><span class=\"op\">=</span><span class=\"nam\">settings</span><span class=\"op\">.</span><span class=\"nam\">AUTH_USER_MODEL</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">                <span class=\"op\">(</span><span class=\"str\">'category'</span><span class=\"op\">,</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span><span class=\"op\">.</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">deletion</span><span class=\"op\">.</span><span class=\"nam\">PROTECT</span><span class=\"op\">,</span> <span class=\"nam\">to</span><span class=\"op\">=</span><span class=\"str\">'blog.category'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"pln\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"pln\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">            <span class=\"nam\">options</span><span class=\"op\">=</span><span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">                <span class=\"str\">'ordering'</span><span class=\"op\">:</span> <span class=\"op\">(</span><span class=\"str\">'-published'</span><span class=\"op\">,</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"pln\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">            <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"pln\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">        <span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t42\" class=\"pln\"><span class=\"n\"><a href=\"#t42\">42</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_migrations___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\migrations\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\migrations\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_models_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\models.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\models.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            26 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">26 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">db</span> <span class=\"key\">import</span> <span class=\"nam\">models</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span><span class=\"op\">.</span><span class=\"nam\">auth</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">User</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">utils</span> <span class=\"key\">import</span> <span class=\"nam\">timezone</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Category</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Model</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">name</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">100</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">__str__</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">        <span class=\"key\">return</span> <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">name</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Post</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Model</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"run\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">PostObjects</span><span class=\"op\">(</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Manager</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">        <span class=\"key\">def</span> <span class=\"nam\">get_queryset</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">            <span class=\"key\">return</span> <span class=\"nam\">super</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">get_queryset</span><span class=\"op\">(</span><span class=\"op\">)</span> <span class=\"op\">.</span><span class=\"nam\">filter</span><span class=\"op\">(</span><span class=\"nam\">status</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"run\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">    <span class=\"nam\">options</span> <span class=\"op\">=</span> <span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">        <span class=\"op\">(</span><span class=\"str\">'draft'</span><span class=\"op\">,</span> <span class=\"str\">'Draft'</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">        <span class=\"op\">(</span><span class=\"str\">'published'</span><span class=\"op\">,</span> <span class=\"str\">'Published'</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">    <span class=\"nam\">category</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"nam\">Category</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">PROTECT</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"run\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">    <span class=\"nam\">title</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">    <span class=\"nam\">excerpt</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"nam\">null</span><span class=\"op\">=</span><span class=\"key\">True</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"run\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">    <span class=\"nam\">content</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">TextField</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">    <span class=\"nam\">slug</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">SlugField</span><span class=\"op\">(</span><span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">250</span><span class=\"op\">,</span> <span class=\"nam\">unique_for_date</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"run\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">    <span class=\"nam\">published</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">DateTimeField</span><span class=\"op\">(</span><span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"nam\">timezone</span><span class=\"op\">.</span><span class=\"nam\">now</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"run\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">    <span class=\"nam\">author</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">ForeignKey</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">        <span class=\"nam\">User</span><span class=\"op\">,</span> <span class=\"nam\">on_delete</span><span class=\"op\">=</span><span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CASCADE</span><span class=\"op\">,</span> <span class=\"nam\">related_name</span><span class=\"op\">=</span><span class=\"str\">'blog_posts'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"run\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">    <span class=\"nam\">status</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">CharField</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"pln\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">        <span class=\"nam\">max_length</span><span class=\"op\">=</span><span class=\"num\">10</span><span class=\"op\">,</span> <span class=\"nam\">choices</span><span class=\"op\">=</span><span class=\"nam\">options</span><span class=\"op\">,</span> <span class=\"nam\">default</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"run\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">    <span class=\"nam\">objects</span> <span class=\"op\">=</span> <span class=\"nam\">models</span><span class=\"op\">.</span><span class=\"nam\">Manager</span><span class=\"op\">(</span><span class=\"op\">)</span>  <span class=\"com\"># default manager</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"run\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">    <span class=\"nam\">postobjects</span> <span class=\"op\">=</span> <span class=\"nam\">PostObjects</span><span class=\"op\">(</span><span class=\"op\">)</span>  <span class=\"com\"># custom manager</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"run\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">    <span class=\"key\">class</span> <span class=\"nam\">Meta</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"run\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">        <span class=\"nam\">ordering</span> <span class=\"op\">=</span> <span class=\"op\">(</span><span class=\"str\">'-published'</span><span class=\"op\">,</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"run\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">__str__</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"run\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">        <span class=\"key\">return</span> <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">title</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:55 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_tests_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\tests.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\tests.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            25 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">25 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">test</span> <span class=\"key\">import</span> <span class=\"nam\">TestCase</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span><span class=\"op\">.</span><span class=\"nam\">auth</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">User</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">blog</span><span class=\"op\">.</span><span class=\"nam\">models</span> <span class=\"key\">import</span> <span class=\"nam\">Post</span><span class=\"op\">,</span> <span class=\"nam\">Category</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"key\">class</span> <span class=\"nam\">Test_Create_Post</span><span class=\"op\">(</span><span class=\"nam\">TestCase</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"run\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"op\">@</span><span class=\"nam\">classmethod</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">setUpTestData</span><span class=\"op\">(</span><span class=\"nam\">cls</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">        <span class=\"nam\">test_category</span> <span class=\"op\">=</span> <span class=\"nam\">Category</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create</span><span class=\"op\">(</span><span class=\"nam\">name</span><span class=\"op\">=</span><span class=\"str\">'django'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"run\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">        <span class=\"nam\">testuser1</span> <span class=\"op\">=</span> <span class=\"nam\">User</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create_user</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"pln\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">            <span class=\"nam\">username</span><span class=\"op\">=</span><span class=\"str\">'test_user1'</span><span class=\"op\">,</span> <span class=\"nam\">password</span><span class=\"op\">=</span><span class=\"str\">'123456789'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"run\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">        <span class=\"nam\">testuser1</span><span class=\"op\">.</span><span class=\"nam\">save</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">        <span class=\"nam\">test_post</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">create</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">            <span class=\"nam\">category_id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">title</span><span class=\"op\">=</span><span class=\"str\">'Post Title'</span><span class=\"op\">,</span> <span class=\"nam\">excerpt</span><span class=\"op\">=</span><span class=\"str\">'Post Excerpt'</span><span class=\"op\">,</span> <span class=\"nam\">content</span><span class=\"op\">=</span><span class=\"str\">'Post Content'</span><span class=\"op\">,</span> <span class=\"nam\">slug</span><span class=\"op\">=</span><span class=\"str\">'post-title'</span><span class=\"op\">,</span> <span class=\"nam\">author_id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">,</span> <span class=\"nam\">status</span><span class=\"op\">=</span><span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"run\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">        <span class=\"nam\">test_post</span><span class=\"op\">.</span><span class=\"nam\">save</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"run\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">    <span class=\"key\">def</span> <span class=\"nam\">test_blog_content</span><span class=\"op\">(</span><span class=\"nam\">self</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"run\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">        <span class=\"nam\">post</span> <span class=\"op\">=</span> <span class=\"nam\">Post</span><span class=\"op\">.</span><span class=\"nam\">postobjects</span><span class=\"op\">.</span><span class=\"nam\">get</span><span class=\"op\">(</span><span class=\"nam\">id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"run\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">        <span class=\"nam\">cat</span> <span class=\"op\">=</span> <span class=\"nam\">Category</span><span class=\"op\">.</span><span class=\"nam\">objects</span><span class=\"op\">.</span><span class=\"nam\">get</span><span class=\"op\">(</span><span class=\"nam\">id</span><span class=\"op\">=</span><span class=\"num\">1</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\">        <span class=\"nam\">author</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.author}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"run\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">        <span class=\"nam\">excerpt</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.excerpt}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"run\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\">        <span class=\"nam\">title</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.title}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\">        <span class=\"nam\">content</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.content}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"run\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">        <span class=\"nam\">status</span> <span class=\"op\">=</span> <span class=\"str\">f'{post.status}'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">author</span><span class=\"op\">,</span> <span class=\"str\">'test_user1'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"run\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">title</span><span class=\"op\">,</span> <span class=\"str\">'Post Title'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"run\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">content</span><span class=\"op\">,</span> <span class=\"str\">'Post Content'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"run\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">status</span><span class=\"op\">,</span> <span class=\"str\">'published'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"run\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">str</span><span class=\"op\">(</span><span class=\"nam\">post</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"str\">\"Post Title\"</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"run\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\">        <span class=\"nam\">self</span><span class=\"op\">.</span><span class=\"nam\">assertEqual</span><span class=\"op\">(</span><span class=\"nam\">str</span><span class=\"op\">(</span><span class=\"nam\">cat</span><span class=\"op\">)</span><span class=\"op\">,</span> <span class=\"str\">\"django\"</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:55 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/blog_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for blog\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>blog\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            4 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">4 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"run\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">views</span><span class=\"op\">.</span><span class=\"nam\">generic</span> <span class=\"key\">import</span> <span class=\"nam\">TemplateView</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"nam\">app_name</span> <span class=\"op\">=</span> <span class=\"str\">'blog'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"run\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">TemplateView</span><span class=\"op\">.</span><span class=\"nam\">as_view</span><span class=\"op\">(</span><span class=\"nam\">template_name</span><span class=\"op\">=</span><span class=\"str\">\"blog/index.html\"</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/core___init___py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\__init__.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\__init__.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            0 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">0 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/core_settings_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\settings.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\settings.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            19 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">19 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"str\">Django settings for core project.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"str\">Generated by 'django-admin startproject' using Django 3.1.1.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"str\">For more information on this file, see</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"str\">https://docs.djangoproject.com/en/3.1/topics/settings/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"str\">For the full list of settings and their values, see</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\"><span class=\"str\">https://docs.djangoproject.com/en/3.1/ref/settings/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"run\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">pathlib</span> <span class=\"key\">import</span> <span class=\"nam\">Path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\"><span class=\"com\"># Build paths inside the project like this: BASE_DIR / 'subdir'.</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"nam\">BASE_DIR</span> <span class=\"op\">=</span> <span class=\"nam\">Path</span><span class=\"op\">(</span><span class=\"nam\">__file__</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">resolve</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">.</span><span class=\"nam\">parent</span><span class=\"op\">.</span><span class=\"nam\">parent</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"com\"># Quick-start development settings - unsuitable for production</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\"><span class=\"com\"># See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\"><span class=\"com\"># SECURITY WARNING: keep the secret key used in production secret!</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"run\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"nam\">SECRET_KEY</span> <span class=\"op\">=</span> <span class=\"str\">'o$&amp;u%nbd)@uta53xz=zl1(3icpuhun2%pz(17^6lbgf(g%qa#f'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t24\" class=\"pln\"><span class=\"n\"><a href=\"#t24\">24</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t25\" class=\"pln\"><span class=\"n\"><a href=\"#t25\">25</a></span><span class=\"t\"><span class=\"com\"># SECURITY WARNING: don't run with debug turned on in production!</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t26\" class=\"run\"><span class=\"n\"><a href=\"#t26\">26</a></span><span class=\"t\"><span class=\"nam\">DEBUG</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t27\" class=\"pln\"><span class=\"n\"><a href=\"#t27\">27</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t28\" class=\"run\"><span class=\"n\"><a href=\"#t28\">28</a></span><span class=\"t\"><span class=\"nam\">ALLOWED_HOSTS</span> <span class=\"op\">=</span> <span class=\"op\">[</span><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t29\" class=\"pln\"><span class=\"n\"><a href=\"#t29\">29</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t30\" class=\"pln\"><span class=\"n\"><a href=\"#t30\">30</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t31\" class=\"pln\"><span class=\"n\"><a href=\"#t31\">31</a></span><span class=\"t\"><span class=\"com\"># Application definition</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t32\" class=\"pln\"><span class=\"n\"><a href=\"#t32\">32</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t33\" class=\"run\"><span class=\"n\"><a href=\"#t33\">33</a></span><span class=\"t\"><span class=\"nam\">INSTALLED_APPS</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t34\" class=\"pln\"><span class=\"n\"><a href=\"#t34\">34</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.admin'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t35\" class=\"pln\"><span class=\"n\"><a href=\"#t35\">35</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.auth'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t36\" class=\"pln\"><span class=\"n\"><a href=\"#t36\">36</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.contenttypes'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t37\" class=\"pln\"><span class=\"n\"><a href=\"#t37\">37</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.sessions'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t38\" class=\"pln\"><span class=\"n\"><a href=\"#t38\">38</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.messages'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t39\" class=\"pln\"><span class=\"n\"><a href=\"#t39\">39</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.staticfiles'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t40\" class=\"pln\"><span class=\"n\"><a href=\"#t40\">40</a></span><span class=\"t\">    <span class=\"str\">'blog'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t41\" class=\"pln\"><span class=\"n\"><a href=\"#t41\">41</a></span><span class=\"t\">    <span class=\"str\">'blog_api'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t42\" class=\"pln\"><span class=\"n\"><a href=\"#t42\">42</a></span><span class=\"t\">    <span class=\"str\">'rest_framework'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t43\" class=\"pln\"><span class=\"n\"><a href=\"#t43\">43</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t44\" class=\"pln\"><span class=\"n\"><a href=\"#t44\">44</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t45\" class=\"run\"><span class=\"n\"><a href=\"#t45\">45</a></span><span class=\"t\"><span class=\"nam\">MIDDLEWARE</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t46\" class=\"pln\"><span class=\"n\"><a href=\"#t46\">46</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.security.SecurityMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t47\" class=\"pln\"><span class=\"n\"><a href=\"#t47\">47</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.sessions.middleware.SessionMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t48\" class=\"pln\"><span class=\"n\"><a href=\"#t48\">48</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.common.CommonMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t49\" class=\"pln\"><span class=\"n\"><a href=\"#t49\">49</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.csrf.CsrfViewMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t50\" class=\"pln\"><span class=\"n\"><a href=\"#t50\">50</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.auth.middleware.AuthenticationMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t51\" class=\"pln\"><span class=\"n\"><a href=\"#t51\">51</a></span><span class=\"t\">    <span class=\"str\">'django.contrib.messages.middleware.MessageMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t52\" class=\"pln\"><span class=\"n\"><a href=\"#t52\">52</a></span><span class=\"t\">    <span class=\"str\">'django.middleware.clickjacking.XFrameOptionsMiddleware'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t53\" class=\"pln\"><span class=\"n\"><a href=\"#t53\">53</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t54\" class=\"pln\"><span class=\"n\"><a href=\"#t54\">54</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t55\" class=\"run\"><span class=\"n\"><a href=\"#t55\">55</a></span><span class=\"t\"><span class=\"nam\">ROOT_URLCONF</span> <span class=\"op\">=</span> <span class=\"str\">'core.urls'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t56\" class=\"pln\"><span class=\"n\"><a href=\"#t56\">56</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t57\" class=\"run\"><span class=\"n\"><a href=\"#t57\">57</a></span><span class=\"t\"><span class=\"nam\">TEMPLATES</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t58\" class=\"pln\"><span class=\"n\"><a href=\"#t58\">58</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t59\" class=\"pln\"><span class=\"n\"><a href=\"#t59\">59</a></span><span class=\"t\">        <span class=\"str\">'BACKEND'</span><span class=\"op\">:</span> <span class=\"str\">'django.template.backends.django.DjangoTemplates'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t60\" class=\"pln\"><span class=\"n\"><a href=\"#t60\">60</a></span><span class=\"t\">        <span class=\"str\">'DIRS'</span><span class=\"op\">:</span> <span class=\"op\">[</span><span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t61\" class=\"pln\"><span class=\"n\"><a href=\"#t61\">61</a></span><span class=\"t\">        <span class=\"str\">'APP_DIRS'</span><span class=\"op\">:</span> <span class=\"key\">True</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t62\" class=\"pln\"><span class=\"n\"><a href=\"#t62\">62</a></span><span class=\"t\">        <span class=\"str\">'OPTIONS'</span><span class=\"op\">:</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t63\" class=\"pln\"><span class=\"n\"><a href=\"#t63\">63</a></span><span class=\"t\">            <span class=\"str\">'context_processors'</span><span class=\"op\">:</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t64\" class=\"pln\"><span class=\"n\"><a href=\"#t64\">64</a></span><span class=\"t\">                <span class=\"str\">'django.template.context_processors.debug'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t65\" class=\"pln\"><span class=\"n\"><a href=\"#t65\">65</a></span><span class=\"t\">                <span class=\"str\">'django.template.context_processors.request'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t66\" class=\"pln\"><span class=\"n\"><a href=\"#t66\">66</a></span><span class=\"t\">                <span class=\"str\">'django.contrib.auth.context_processors.auth'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t67\" class=\"pln\"><span class=\"n\"><a href=\"#t67\">67</a></span><span class=\"t\">                <span class=\"str\">'django.contrib.messages.context_processors.messages'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t68\" class=\"pln\"><span class=\"n\"><a href=\"#t68\">68</a></span><span class=\"t\">            <span class=\"op\">]</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t69\" class=\"pln\"><span class=\"n\"><a href=\"#t69\">69</a></span><span class=\"t\">        <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t70\" class=\"pln\"><span class=\"n\"><a href=\"#t70\">70</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t71\" class=\"pln\"><span class=\"n\"><a href=\"#t71\">71</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t72\" class=\"pln\"><span class=\"n\"><a href=\"#t72\">72</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t73\" class=\"run\"><span class=\"n\"><a href=\"#t73\">73</a></span><span class=\"t\"><span class=\"nam\">WSGI_APPLICATION</span> <span class=\"op\">=</span> <span class=\"str\">'core.wsgi.application'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t74\" class=\"pln\"><span class=\"n\"><a href=\"#t74\">74</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t75\" class=\"pln\"><span class=\"n\"><a href=\"#t75\">75</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t76\" class=\"pln\"><span class=\"n\"><a href=\"#t76\">76</a></span><span class=\"t\"><span class=\"com\"># Database</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t77\" class=\"pln\"><span class=\"n\"><a href=\"#t77\">77</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/ref/settings/#databases</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t78\" class=\"pln\"><span class=\"n\"><a href=\"#t78\">78</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t79\" class=\"run\"><span class=\"n\"><a href=\"#t79\">79</a></span><span class=\"t\"><span class=\"nam\">DATABASES</span> <span class=\"op\">=</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t80\" class=\"pln\"><span class=\"n\"><a href=\"#t80\">80</a></span><span class=\"t\">    <span class=\"str\">'default'</span><span class=\"op\">:</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t81\" class=\"pln\"><span class=\"n\"><a href=\"#t81\">81</a></span><span class=\"t\">        <span class=\"str\">'ENGINE'</span><span class=\"op\">:</span> <span class=\"str\">'django.db.backends.sqlite3'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t82\" class=\"pln\"><span class=\"n\"><a href=\"#t82\">82</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"nam\">BASE_DIR</span> <span class=\"op\">/</span> <span class=\"str\">'db.sqlite3'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t83\" class=\"pln\"><span class=\"n\"><a href=\"#t83\">83</a></span><span class=\"t\">    <span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t84\" class=\"pln\"><span class=\"n\"><a href=\"#t84\">84</a></span><span class=\"t\"><span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t85\" class=\"pln\"><span class=\"n\"><a href=\"#t85\">85</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t86\" class=\"pln\"><span class=\"n\"><a href=\"#t86\">86</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t87\" class=\"pln\"><span class=\"n\"><a href=\"#t87\">87</a></span><span class=\"t\"><span class=\"com\"># Password validation</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t88\" class=\"pln\"><span class=\"n\"><a href=\"#t88\">88</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t89\" class=\"pln\"><span class=\"n\"><a href=\"#t89\">89</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t90\" class=\"run\"><span class=\"n\"><a href=\"#t90\">90</a></span><span class=\"t\"><span class=\"nam\">AUTH_PASSWORD_VALIDATORS</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t91\" class=\"pln\"><span class=\"n\"><a href=\"#t91\">91</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t92\" class=\"pln\"><span class=\"n\"><a href=\"#t92\">92</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.UserAttributeSimilarityValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t93\" class=\"pln\"><span class=\"n\"><a href=\"#t93\">93</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t94\" class=\"pln\"><span class=\"n\"><a href=\"#t94\">94</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t95\" class=\"pln\"><span class=\"n\"><a href=\"#t95\">95</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.MinimumLengthValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t96\" class=\"pln\"><span class=\"n\"><a href=\"#t96\">96</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t97\" class=\"pln\"><span class=\"n\"><a href=\"#t97\">97</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t98\" class=\"pln\"><span class=\"n\"><a href=\"#t98\">98</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.CommonPasswordValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t99\" class=\"pln\"><span class=\"n\"><a href=\"#t99\">99</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t100\" class=\"pln\"><span class=\"n\"><a href=\"#t100\">100</a></span><span class=\"t\">    <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t101\" class=\"pln\"><span class=\"n\"><a href=\"#t101\">101</a></span><span class=\"t\">        <span class=\"str\">'NAME'</span><span class=\"op\">:</span> <span class=\"str\">'django.contrib.auth.password_validation.NumericPasswordValidator'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t102\" class=\"pln\"><span class=\"n\"><a href=\"#t102\">102</a></span><span class=\"t\">    <span class=\"op\">}</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t103\" class=\"pln\"><span class=\"n\"><a href=\"#t103\">103</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t104\" class=\"pln\"><span class=\"n\"><a href=\"#t104\">104</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t105\" class=\"pln\"><span class=\"n\"><a href=\"#t105\">105</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t106\" class=\"pln\"><span class=\"n\"><a href=\"#t106\">106</a></span><span class=\"t\"><span class=\"com\"># Internationalization</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t107\" class=\"pln\"><span class=\"n\"><a href=\"#t107\">107</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/topics/i18n/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t108\" class=\"pln\"><span class=\"n\"><a href=\"#t108\">108</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t109\" class=\"run\"><span class=\"n\"><a href=\"#t109\">109</a></span><span class=\"t\"><span class=\"nam\">LANGUAGE_CODE</span> <span class=\"op\">=</span> <span class=\"str\">'en-us'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t110\" class=\"pln\"><span class=\"n\"><a href=\"#t110\">110</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t111\" class=\"run\"><span class=\"n\"><a href=\"#t111\">111</a></span><span class=\"t\"><span class=\"nam\">TIME_ZONE</span> <span class=\"op\">=</span> <span class=\"str\">'UTC'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t112\" class=\"pln\"><span class=\"n\"><a href=\"#t112\">112</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t113\" class=\"run\"><span class=\"n\"><a href=\"#t113\">113</a></span><span class=\"t\"><span class=\"nam\">USE_I18N</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t114\" class=\"pln\"><span class=\"n\"><a href=\"#t114\">114</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t115\" class=\"run\"><span class=\"n\"><a href=\"#t115\">115</a></span><span class=\"t\"><span class=\"nam\">USE_L10N</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t116\" class=\"pln\"><span class=\"n\"><a href=\"#t116\">116</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t117\" class=\"run\"><span class=\"n\"><a href=\"#t117\">117</a></span><span class=\"t\"><span class=\"nam\">USE_TZ</span> <span class=\"op\">=</span> <span class=\"key\">True</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t118\" class=\"pln\"><span class=\"n\"><a href=\"#t118\">118</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t119\" class=\"pln\"><span class=\"n\"><a href=\"#t119\">119</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t120\" class=\"pln\"><span class=\"n\"><a href=\"#t120\">120</a></span><span class=\"t\"><span class=\"com\"># Static files (CSS, JavaScript, Images)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t121\" class=\"pln\"><span class=\"n\"><a href=\"#t121\">121</a></span><span class=\"t\"><span class=\"com\"># https://docs.djangoproject.com/en/3.1/howto/static-files/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t122\" class=\"pln\"><span class=\"n\"><a href=\"#t122\">122</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t123\" class=\"run\"><span class=\"n\"><a href=\"#t123\">123</a></span><span class=\"t\"><span class=\"nam\">STATIC_URL</span> <span class=\"op\">=</span> <span class=\"str\">'/static/'</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t124\" class=\"pln\"><span class=\"n\"><a href=\"#t124\">124</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t125\" class=\"pln\"><span class=\"n\"><a href=\"#t125\">125</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t126\" class=\"run\"><span class=\"n\"><a href=\"#t126\">126</a></span><span class=\"t\"><span class=\"nam\">REST_FRAMEWORK</span> <span class=\"op\">=</span> <span class=\"op\">{</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t127\" class=\"pln\"><span class=\"n\"><a href=\"#t127\">127</a></span><span class=\"t\">    <span class=\"str\">'DEFAULT_PERMISSION_CLASSES'</span><span class=\"op\">:</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t128\" class=\"pln\"><span class=\"n\"><a href=\"#t128\">128</a></span><span class=\"t\">        <span class=\"str\">'rest_framework.permissions.AllowAny'</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t129\" class=\"pln\"><span class=\"n\"><a href=\"#t129\">129</a></span><span class=\"t\">    <span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t130\" class=\"pln\"><span class=\"n\"><a href=\"#t130\">130</a></span><span class=\"t\"><span class=\"op\">}</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/core_urls_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for core\\urls.py: 100%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>core\\urls.py</b> :\n            <span class=\"pc_cov\">100%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            3 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">3 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">0 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"str\">\"\"\"core URL Configuration</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"pln\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"pln\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"str\">The `urlpatterns` list routes URLs to views. For more information please see:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"pln\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"str\">    https://docs.djangoproject.com/en/3.1/topics/http/urls/</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\"><span class=\"str\">Examples:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\"><span class=\"str\">Function views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"pln\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"str\">    1. Add an import:  from my_app import views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('', views.home, name='home')</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"pln\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\"><span class=\"str\">Class-based views</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"pln\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\"><span class=\"str\">    1. Add an import:  from other_app.views import Home</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"pln\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"pln\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\"><span class=\"str\">Including another URLconf</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"pln\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\"><span class=\"str\">    1. Import the include() function: from django.urls import include, path</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\"><span class=\"str\">    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\"><span class=\"str\">\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"run\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">contrib</span> <span class=\"key\">import</span> <span class=\"nam\">admin</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"run\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\"><span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">urls</span> <span class=\"key\">import</span> <span class=\"nam\">path</span><span class=\"op\">,</span> <span class=\"nam\">include</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"pln\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"run\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\"><span class=\"nam\">urlpatterns</span> <span class=\"op\">=</span> <span class=\"op\">[</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'admin/'</span><span class=\"op\">,</span> <span class=\"nam\">admin</span><span class=\"op\">.</span><span class=\"nam\">site</span><span class=\"op\">.</span><span class=\"nam\">urls</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"pln\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">''</span><span class=\"op\">,</span> <span class=\"nam\">include</span><span class=\"op\">(</span><span class=\"str\">'blog.urls'</span><span class=\"op\">,</span> <span class=\"nam\">namespace</span><span class=\"op\">=</span><span class=\"str\">'blog'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"pln\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"nam\">path</span><span class=\"op\">(</span><span class=\"str\">'api/'</span><span class=\"op\">,</span> <span class=\"nam\">include</span><span class=\"op\">(</span><span class=\"str\">'blog_api.urls'</span><span class=\"op\">,</span> <span class=\"nam\">namespace</span><span class=\"op\">=</span><span class=\"str\">'blog_api'</span><span class=\"op\">)</span><span class=\"op\">)</span><span class=\"op\">,</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t23\" class=\"pln\"><span class=\"n\"><a href=\"#t23\">23</a></span><span class=\"t\"><span class=\"op\">]</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/coverage_html.js",
    "content": "// Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0\n// For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt\n\n// Coverage.py HTML report browser code.\n/*jslint browser: true, sloppy: true, vars: true, plusplus: true, maxerr: 50, indent: 4 */\n/*global coverage: true, document, window, $ */\n\ncoverage = {};\n\n// Find all the elements with shortkey_* class, and use them to assign a shortcut key.\ncoverage.assign_shortkeys = function () {\n    $(\"*[class*='shortkey_']\").each(function (i, e) {\n        $.each($(e).attr(\"class\").split(\" \"), function (i, c) {\n            if (/^shortkey_/.test(c)) {\n                $(document).bind('keydown', c.substr(9), function () {\n                    $(e).click();\n                });\n            }\n        });\n    });\n};\n\n// Create the events for the help panel.\ncoverage.wire_up_help_panel = function () {\n    $(\"#keyboard_icon\").click(function () {\n        // Show the help panel, and position it so the keyboard icon in the\n        // panel is in the same place as the keyboard icon in the header.\n        $(\".help_panel\").show();\n        var koff = $(\"#keyboard_icon\").offset();\n        var poff = $(\"#panel_icon\").position();\n        $(\".help_panel\").offset({\n            top: koff.top-poff.top,\n            left: koff.left-poff.left\n        });\n    });\n    $(\"#panel_icon\").click(function () {\n        $(\".help_panel\").hide();\n    });\n};\n\n// Create the events for the filter box.\ncoverage.wire_up_filter = function () {\n    // Cache elements.\n    var table = $(\"table.index\");\n    var table_rows = table.find(\"tbody tr\");\n    var table_row_names = table_rows.find(\"td.name a\");\n    var no_rows = $(\"#no_rows\");\n\n    // Create a duplicate table footer that we can modify with dynamic summed values.\n    var table_footer = $(\"table.index tfoot tr\");\n    var table_dynamic_footer = table_footer.clone();\n    table_dynamic_footer.attr('class', 'total_dynamic hidden');\n    table_footer.after(table_dynamic_footer);\n\n    // Observe filter keyevents.\n    $(\"#filter\").on(\"keyup change\", $.debounce(150, function (event) {\n        var filter_value = $(this).val();\n\n        if (filter_value === \"\") {\n            // Filter box is empty, remove all filtering.\n            table_rows.removeClass(\"hidden\");\n\n            // Show standard footer, hide dynamic footer.\n            table_footer.removeClass(\"hidden\");\n            table_dynamic_footer.addClass(\"hidden\");\n\n            // Hide placeholder, show table.\n            if (no_rows.length > 0) {\n                no_rows.hide();\n            }\n            table.show();\n\n        }\n        else {\n            // Filter table items by value.\n            var hidden = 0;\n            var shown = 0;\n\n            // Hide / show elements.\n            $.each(table_row_names, function () {\n                var element = $(this).parents(\"tr\");\n\n                if ($(this).text().indexOf(filter_value) === -1) {\n                    // hide\n                    element.addClass(\"hidden\");\n                    hidden++;\n                }\n                else {\n                    // show\n                    element.removeClass(\"hidden\");\n                    shown++;\n                }\n            });\n\n            // Show placeholder if no rows will be displayed.\n            if (no_rows.length > 0) {\n                if (shown === 0) {\n                    // Show placeholder, hide table.\n                    no_rows.show();\n                    table.hide();\n                }\n                else {\n                    // Hide placeholder, show table.\n                    no_rows.hide();\n                    table.show();\n                }\n            }\n\n            // Manage dynamic header:\n            if (hidden > 0) {\n                // Calculate new dynamic sum values based on visible rows.\n                for (var column = 2; column < 20; column++) {\n                    // Calculate summed value.\n                    var cells = table_rows.find('td:nth-child(' + column + ')');\n                    if (!cells.length) {\n                        // No more columns...!\n                        break;\n                    }\n\n                    var sum = 0, numer = 0, denom = 0;\n                    $.each(cells.filter(':visible'), function () {\n                        var ratio = $(this).data(\"ratio\");\n                        if (ratio) {\n                            var splitted = ratio.split(\" \");\n                            numer += parseInt(splitted[0], 10);\n                            denom += parseInt(splitted[1], 10);\n                        }\n                        else {\n                            sum += parseInt(this.innerHTML, 10);\n                        }\n                    });\n\n                    // Get footer cell element.\n                    var footer_cell = table_dynamic_footer.find('td:nth-child(' + column + ')');\n\n                    // Set value into dynamic footer cell element.\n                    if (cells[0].innerHTML.indexOf('%') > -1) {\n                        // Percentage columns use the numerator and denominator,\n                        // and adapt to the number of decimal places.\n                        var match = /\\.([0-9]+)/.exec(cells[0].innerHTML);\n                        var places = 0;\n                        if (match) {\n                            places = match[1].length;\n                        }\n                        var pct = numer * 100 / denom;\n                        footer_cell.text(pct.toFixed(places) + '%');\n                    }\n                    else {\n                        footer_cell.text(sum);\n                    }\n                }\n\n                // Hide standard footer, show dynamic footer.\n                table_footer.addClass(\"hidden\");\n                table_dynamic_footer.removeClass(\"hidden\");\n            }\n            else {\n                // Show standard footer, hide dynamic footer.\n                table_footer.removeClass(\"hidden\");\n                table_dynamic_footer.addClass(\"hidden\");\n            }\n        }\n    }));\n\n    // Trigger change event on setup, to force filter on page refresh\n    // (filter value may still be present).\n    $(\"#filter\").trigger(\"change\");\n};\n\n// Loaded on index.html\ncoverage.index_ready = function ($) {\n    // Look for a localStorage item containing previous sort settings:\n    var sort_list = [];\n    var storage_name = \"COVERAGE_INDEX_SORT\";\n    var stored_list = undefined;\n    try {\n        stored_list = localStorage.getItem(storage_name);\n    } catch(err) {}\n\n    if (stored_list) {\n        sort_list = JSON.parse('[[' + stored_list + ']]');\n    }\n\n    // Create a new widget which exists only to save and restore\n    // the sort order:\n    $.tablesorter.addWidget({\n        id: \"persistentSort\",\n\n        // Format is called by the widget before displaying:\n        format: function (table) {\n            if (table.config.sortList.length === 0 && sort_list.length > 0) {\n                // This table hasn't been sorted before - we'll use\n                // our stored settings:\n                $(table).trigger('sorton', [sort_list]);\n            }\n            else {\n                // This is not the first load - something has\n                // already defined sorting so we'll just update\n                // our stored value to match:\n                sort_list = table.config.sortList;\n            }\n        }\n    });\n\n    // Configure our tablesorter to handle the variable number of\n    // columns produced depending on report options:\n    var headers = [];\n    var col_count = $(\"table.index > thead > tr > th\").length;\n\n    headers[0] = { sorter: 'text' };\n    for (i = 1; i < col_count-1; i++) {\n        headers[i] = { sorter: 'digit' };\n    }\n    headers[col_count-1] = { sorter: 'percent' };\n\n    // Enable the table sorter:\n    $(\"table.index\").tablesorter({\n        widgets: ['persistentSort'],\n        headers: headers\n    });\n\n    coverage.assign_shortkeys();\n    coverage.wire_up_help_panel();\n    coverage.wire_up_filter();\n\n    // Watch for page unload events so we can save the final sort settings:\n    $(window).unload(function () {\n        try {\n            localStorage.setItem(storage_name, sort_list.toString())\n        } catch(err) {}\n    });\n};\n\n// -- pyfile stuff --\n\ncoverage.pyfile_ready = function ($) {\n    // If we're directed to a particular line number, highlight the line.\n    var frag = location.hash;\n    if (frag.length > 2 && frag[1] === 't') {\n        $(frag).addClass('highlight');\n        coverage.set_sel(parseInt(frag.substr(2), 10));\n    }\n    else {\n        coverage.set_sel(0);\n    }\n\n    $(document)\n        .bind('keydown', 'j', coverage.to_next_chunk_nicely)\n        .bind('keydown', 'k', coverage.to_prev_chunk_nicely)\n        .bind('keydown', '0', coverage.to_top)\n        .bind('keydown', '1', coverage.to_first_chunk)\n        ;\n\n    $(\".button_toggle_run\").click(function (evt) {coverage.toggle_lines(evt.target, \"run\");});\n    $(\".button_toggle_exc\").click(function (evt) {coverage.toggle_lines(evt.target, \"exc\");});\n    $(\".button_toggle_mis\").click(function (evt) {coverage.toggle_lines(evt.target, \"mis\");});\n    $(\".button_toggle_par\").click(function (evt) {coverage.toggle_lines(evt.target, \"par\");});\n\n    coverage.assign_shortkeys();\n    coverage.wire_up_help_panel();\n\n    coverage.init_scroll_markers();\n\n    // Rebuild scroll markers when the window height changes.\n    $(window).resize(coverage.build_scroll_markers);\n};\n\ncoverage.toggle_lines = function (btn, cls) {\n    btn = $(btn);\n    var show = \"show_\"+cls;\n    if (btn.hasClass(show)) {\n        $(\"#source .\" + cls).removeClass(show);\n        btn.removeClass(show);\n    }\n    else {\n        $(\"#source .\" + cls).addClass(show);\n        btn.addClass(show);\n    }\n    coverage.build_scroll_markers();\n};\n\n// Return the nth line div.\ncoverage.line_elt = function (n) {\n    return $(\"#t\" + n);\n};\n\n// Return the nth line number div.\ncoverage.num_elt = function (n) {\n    return $(\"#n\" + n);\n};\n\n// Set the selection.  b and e are line numbers.\ncoverage.set_sel = function (b, e) {\n    // The first line selected.\n    coverage.sel_begin = b;\n    // The next line not selected.\n    coverage.sel_end = (e === undefined) ? b+1 : e;\n};\n\ncoverage.to_top = function () {\n    coverage.set_sel(0, 1);\n    coverage.scroll_window(0);\n};\n\ncoverage.to_first_chunk = function () {\n    coverage.set_sel(0, 1);\n    coverage.to_next_chunk();\n};\n\n// Return a string indicating what kind of chunk this line belongs to,\n// or null if not a chunk.\ncoverage.chunk_indicator = function (line_elt) {\n    var klass = line_elt.attr('class');\n    if (klass) {\n        var m = klass.match(/\\bshow_\\w+\\b/);\n        if (m) {\n            return m[0];\n        }\n    }\n    return null;\n};\n\ncoverage.to_next_chunk = function () {\n    var c = coverage;\n\n    // Find the start of the next colored chunk.\n    var probe = c.sel_end;\n    var chunk_indicator, probe_line;\n    while (true) {\n        probe_line = c.line_elt(probe);\n        if (probe_line.length === 0) {\n            return;\n        }\n        chunk_indicator = c.chunk_indicator(probe_line);\n        if (chunk_indicator) {\n            break;\n        }\n        probe++;\n    }\n\n    // There's a next chunk, `probe` points to it.\n    var begin = probe;\n\n    // Find the end of this chunk.\n    var next_indicator = chunk_indicator;\n    while (next_indicator === chunk_indicator) {\n        probe++;\n        probe_line = c.line_elt(probe);\n        next_indicator = c.chunk_indicator(probe_line);\n    }\n    c.set_sel(begin, probe);\n    c.show_selection();\n};\n\ncoverage.to_prev_chunk = function () {\n    var c = coverage;\n\n    // Find the end of the prev colored chunk.\n    var probe = c.sel_begin-1;\n    var probe_line = c.line_elt(probe);\n    if (probe_line.length === 0) {\n        return;\n    }\n    var chunk_indicator = c.chunk_indicator(probe_line);\n    while (probe > 0 && !chunk_indicator) {\n        probe--;\n        probe_line = c.line_elt(probe);\n        if (probe_line.length === 0) {\n            return;\n        }\n        chunk_indicator = c.chunk_indicator(probe_line);\n    }\n\n    // There's a prev chunk, `probe` points to its last line.\n    var end = probe+1;\n\n    // Find the beginning of this chunk.\n    var prev_indicator = chunk_indicator;\n    while (prev_indicator === chunk_indicator) {\n        probe--;\n        probe_line = c.line_elt(probe);\n        prev_indicator = c.chunk_indicator(probe_line);\n    }\n    c.set_sel(probe+1, end);\n    c.show_selection();\n};\n\n// Return the line number of the line nearest pixel position pos\ncoverage.line_at_pos = function (pos) {\n    var l1 = coverage.line_elt(1),\n        l2 = coverage.line_elt(2),\n        result;\n    if (l1.length && l2.length) {\n        var l1_top = l1.offset().top,\n            line_height = l2.offset().top - l1_top,\n            nlines = (pos - l1_top) / line_height;\n        if (nlines < 1) {\n            result = 1;\n        }\n        else {\n            result = Math.ceil(nlines);\n        }\n    }\n    else {\n        result = 1;\n    }\n    return result;\n};\n\n// Returns 0, 1, or 2: how many of the two ends of the selection are on\n// the screen right now?\ncoverage.selection_ends_on_screen = function () {\n    if (coverage.sel_begin === 0) {\n        return 0;\n    }\n\n    var top = coverage.line_elt(coverage.sel_begin);\n    var next = coverage.line_elt(coverage.sel_end-1);\n\n    return (\n        (top.isOnScreen() ? 1 : 0) +\n        (next.isOnScreen() ? 1 : 0)\n    );\n};\n\ncoverage.to_next_chunk_nicely = function () {\n    coverage.finish_scrolling();\n    if (coverage.selection_ends_on_screen() === 0) {\n        // The selection is entirely off the screen: select the top line on\n        // the screen.\n        var win = $(window);\n        coverage.select_line_or_chunk(coverage.line_at_pos(win.scrollTop()));\n    }\n    coverage.to_next_chunk();\n};\n\ncoverage.to_prev_chunk_nicely = function () {\n    coverage.finish_scrolling();\n    if (coverage.selection_ends_on_screen() === 0) {\n        var win = $(window);\n        coverage.select_line_or_chunk(coverage.line_at_pos(win.scrollTop() + win.height()));\n    }\n    coverage.to_prev_chunk();\n};\n\n// Select line number lineno, or if it is in a colored chunk, select the\n// entire chunk\ncoverage.select_line_or_chunk = function (lineno) {\n    var c = coverage;\n    var probe_line = c.line_elt(lineno);\n    if (probe_line.length === 0) {\n        return;\n    }\n    var the_indicator = c.chunk_indicator(probe_line);\n    if (the_indicator) {\n        // The line is in a highlighted chunk.\n        // Search backward for the first line.\n        var probe = lineno;\n        var indicator = the_indicator;\n        while (probe > 0 && indicator === the_indicator) {\n            probe--;\n            probe_line = c.line_elt(probe);\n            if (probe_line.length === 0) {\n                break;\n            }\n            indicator = c.chunk_indicator(probe_line);\n        }\n        var begin = probe + 1;\n\n        // Search forward for the last line.\n        probe = lineno;\n        indicator = the_indicator;\n        while (indicator === the_indicator) {\n            probe++;\n            probe_line = c.line_elt(probe);\n            indicator = c.chunk_indicator(probe_line);\n        }\n\n        coverage.set_sel(begin, probe);\n    }\n    else {\n        coverage.set_sel(lineno);\n    }\n};\n\ncoverage.show_selection = function () {\n    var c = coverage;\n\n    // Highlight the lines in the chunk\n    $(\".linenos .highlight\").removeClass(\"highlight\");\n    for (var probe = c.sel_begin; probe > 0 && probe < c.sel_end; probe++) {\n        c.num_elt(probe).addClass(\"highlight\");\n    }\n\n    c.scroll_to_selection();\n};\n\ncoverage.scroll_to_selection = function () {\n    // Scroll the page if the chunk isn't fully visible.\n    if (coverage.selection_ends_on_screen() < 2) {\n        // Need to move the page. The html,body trick makes it scroll in all\n        // browsers, got it from http://stackoverflow.com/questions/3042651\n        var top = coverage.line_elt(coverage.sel_begin);\n        var top_pos = parseInt(top.offset().top, 10);\n        coverage.scroll_window(top_pos - 30);\n    }\n};\n\ncoverage.scroll_window = function (to_pos) {\n    $(\"html,body\").animate({scrollTop: to_pos}, 200);\n};\n\ncoverage.finish_scrolling = function () {\n    $(\"html,body\").stop(true, true);\n};\n\ncoverage.init_scroll_markers = function () {\n    var c = coverage;\n    // Init some variables\n    c.lines_len = $('#source p').length;\n    c.body_h = $('body').height();\n    c.header_h = $('div#header').height();\n\n    // Build html\n    c.build_scroll_markers();\n};\n\ncoverage.build_scroll_markers = function () {\n    var c = coverage,\n        min_line_height = 3,\n        max_line_height = 10,\n        visible_window_h = $(window).height();\n\n    c.lines_to_mark = $('#source').find('p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par');\n    $('#scroll_marker').remove();\n    // Don't build markers if the window has no scroll bar.\n    if (c.body_h <= visible_window_h) {\n        return;\n    }\n\n    $(\"body\").append(\"<div id='scroll_marker'>&nbsp;</div>\");\n    var scroll_marker = $('#scroll_marker'),\n        marker_scale = scroll_marker.height() / c.body_h,\n        line_height = scroll_marker.height() / c.lines_len;\n\n    // Line height must be between the extremes.\n    if (line_height > min_line_height) {\n        if (line_height > max_line_height) {\n            line_height = max_line_height;\n        }\n    }\n    else {\n        line_height = min_line_height;\n    }\n\n    var previous_line = -99,\n        last_mark,\n        last_top,\n        offsets = {};\n\n    // Calculate line offsets outside loop to prevent relayouts\n    c.lines_to_mark.each(function() {\n        offsets[this.id] = $(this).offset().top;\n    });\n    c.lines_to_mark.each(function () {\n        var id_name = $(this).attr('id'),\n            line_top = Math.round(offsets[id_name] * marker_scale),\n            line_number = parseInt(id_name.substring(1, id_name.length));\n\n        if (line_number === previous_line + 1) {\n            // If this solid missed block just make previous mark higher.\n            last_mark.css({\n                'height': line_top + line_height - last_top\n            });\n        }\n        else {\n            // Add colored line in scroll_marker block.\n            scroll_marker.append('<div id=\"m' + line_number + '\" class=\"marker\"></div>');\n            last_mark = $('#m' + line_number);\n            last_mark.css({\n                'height': line_height,\n                'top': line_top\n            });\n            last_top = line_top;\n        }\n\n        previous_line = line_number;\n    });\n};\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/index.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <title>Coverage report</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.ba-throttle-debounce.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.tablesorter.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.index_ready);\n    </script>\n</head>\n<body class=\"indexfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage report:\n            <span class=\"pc_cov\">98%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <form id=\"filter_container\">\n            <input id=\"filter\" type=\"text\" value=\"\" placeholder=\"filter...\" />\n        </form>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">n</span>\n        <span class=\"key\">s</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">c</span> &nbsp; change column sorting\n    </p>\n    </div>\n</div>\n<div id=\"index\">\n    <table class=\"index\">\n        <thead>\n            <tr class=\"tablehead\" title=\"Click to sort\">\n                <th class=\"name left headerSortDown shortkey_n\">Module</th>\n                <th class=\"shortkey_s\">statements</th>\n                <th class=\"shortkey_m\">missing</th>\n                <th class=\"shortkey_x\">excluded</th>\n                <th class=\"right shortkey_c\">coverage</th>\n            </tr>\n        </thead>\n        <tfoot>\n            <tr class=\"total\">\n                <td class=\"name left\">Total</td>\n                <td>127</td>\n                <td>2</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"125 127\">98%</td>\n            </tr>\n        </tfoot>\n        <tbody>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog___init___py.html\">blog\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_admin_py.html\">blog\\admin.py</a></td>\n                <td>7</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"7 7\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_migrations_0001_initial_py.html\">blog\\migrations\\0001_initial.py</a></td>\n                <td>8</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"8 8\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_migrations___init___py.html\">blog\\migrations\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_models_py.html\">blog\\models.py</a></td>\n                <td>26</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"26 26\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_tests_py.html\">blog\\tests.py</a></td>\n                <td>25</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"25 25\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_urls_py.html\">blog\\urls.py</a></td>\n                <td>4</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"4 4\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api___init___py.html\">blog_api\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_admin_py.html\">blog_api\\admin.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_migrations___init___py.html\">blog_api\\migrations\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_models_py.html\">blog_api\\models.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_serializers_py.html\">blog_api\\serializers.py</a></td>\n                <td>6</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"6 6\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_tests_py.html\">blog_api\\tests.py</a></td>\n                <td>1</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"1 1\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_urls_py.html\">blog_api\\urls.py</a></td>\n                <td>4</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"4 4\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"blog_api_views_py.html\">blog_api\\views.py</a></td>\n                <td>10</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"10 10\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core___init___py.html\">core\\__init__.py</a></td>\n                <td>0</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"0 0\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core_settings_py.html\">core\\settings.py</a></td>\n                <td>19</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"19 19\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"core_urls_py.html\">core\\urls.py</a></td>\n                <td>3</td>\n                <td>0</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"3 3\">100%</td>\n            </tr>\n            <tr class=\"file\">\n                <td class=\"name left\"><a href=\"manage_py.html\">manage.py</a></td>\n                <td>12</td>\n                <td>2</td>\n                <td>0</td>\n                <td class=\"right\" data-ratio=\"10 12\">83%</td>\n            </tr>\n        </tbody>\n    </table>\n    <p id=\"no_rows\">\n        No items found using the specified filter.\n    </p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 23:59 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/jquery.hotkeys.js",
    "content": "/*\n * jQuery Hotkeys Plugin\n * Copyright 2010, John Resig\n * Dual licensed under the MIT or GPL Version 2 licenses.\n *\n * Based upon the plugin by Tzury Bar Yochay:\n * http://github.com/tzuryby/hotkeys\n *\n * Original idea by:\n * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/\n*/\n\n(function(jQuery){\n\n\tjQuery.hotkeys = {\n\t\tversion: \"0.8\",\n\n\t\tspecialKeys: {\n\t\t\t8: \"backspace\", 9: \"tab\", 13: \"return\", 16: \"shift\", 17: \"ctrl\", 18: \"alt\", 19: \"pause\",\n\t\t\t20: \"capslock\", 27: \"esc\", 32: \"space\", 33: \"pageup\", 34: \"pagedown\", 35: \"end\", 36: \"home\",\n\t\t\t37: \"left\", 38: \"up\", 39: \"right\", 40: \"down\", 45: \"insert\", 46: \"del\",\n\t\t\t96: \"0\", 97: \"1\", 98: \"2\", 99: \"3\", 100: \"4\", 101: \"5\", 102: \"6\", 103: \"7\",\n\t\t\t104: \"8\", 105: \"9\", 106: \"*\", 107: \"+\", 109: \"-\", 110: \".\", 111 : \"/\",\n\t\t\t112: \"f1\", 113: \"f2\", 114: \"f3\", 115: \"f4\", 116: \"f5\", 117: \"f6\", 118: \"f7\", 119: \"f8\",\n\t\t\t120: \"f9\", 121: \"f10\", 122: \"f11\", 123: \"f12\", 144: \"numlock\", 145: \"scroll\", 191: \"/\", 224: \"meta\"\n\t\t},\n\n\t\tshiftNums: {\n\t\t\t\"`\": \"~\", \"1\": \"!\", \"2\": \"@\", \"3\": \"#\", \"4\": \"$\", \"5\": \"%\", \"6\": \"^\", \"7\": \"&\",\n\t\t\t\"8\": \"*\", \"9\": \"(\", \"0\": \")\", \"-\": \"_\", \"=\": \"+\", \";\": \": \", \"'\": \"\\\"\", \",\": \"<\",\n\t\t\t\".\": \">\",  \"/\": \"?\",  \"\\\\\": \"|\"\n\t\t}\n\t};\n\n\tfunction keyHandler( handleObj ) {\n\t\t// Only care when a possible input has been specified\n\t\tif ( typeof handleObj.data !== \"string\" ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar origHandler = handleObj.handler,\n\t\t\tkeys = handleObj.data.toLowerCase().split(\" \");\n\n\t\thandleObj.handler = function( event ) {\n\t\t\t// Don't fire in text-accepting inputs that we didn't directly bind to\n\t\t\tif ( this !== event.target && (/textarea|select/i.test( event.target.nodeName ) ||\n\t\t\t\t event.target.type === \"text\") ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Keypress represents characters, not special keys\n\t\t\tvar special = event.type !== \"keypress\" && jQuery.hotkeys.specialKeys[ event.which ],\n\t\t\t\tcharacter = String.fromCharCode( event.which ).toLowerCase(),\n\t\t\t\tkey, modif = \"\", possible = {};\n\n\t\t\t// check combinations (alt|ctrl|shift+anything)\n\t\t\tif ( event.altKey && special !== \"alt\" ) {\n\t\t\t\tmodif += \"alt+\";\n\t\t\t}\n\n\t\t\tif ( event.ctrlKey && special !== \"ctrl\" ) {\n\t\t\t\tmodif += \"ctrl+\";\n\t\t\t}\n\n\t\t\t// TODO: Need to make sure this works consistently across platforms\n\t\t\tif ( event.metaKey && !event.ctrlKey && special !== \"meta\" ) {\n\t\t\t\tmodif += \"meta+\";\n\t\t\t}\n\n\t\t\tif ( event.shiftKey && special !== \"shift\" ) {\n\t\t\t\tmodif += \"shift+\";\n\t\t\t}\n\n\t\t\tif ( special ) {\n\t\t\t\tpossible[ modif + special ] = true;\n\n\t\t\t} else {\n\t\t\t\tpossible[ modif + character ] = true;\n\t\t\t\tpossible[ modif + jQuery.hotkeys.shiftNums[ character ] ] = true;\n\n\t\t\t\t// \"$\" can be triggered as \"Shift+4\" or \"Shift+$\" or just \"$\"\n\t\t\t\tif ( modif === \"shift+\" ) {\n\t\t\t\t\tpossible[ jQuery.hotkeys.shiftNums[ character ] ] = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( var i = 0, l = keys.length; i < l; i++ ) {\n\t\t\t\tif ( possible[ keys[i] ] ) {\n\t\t\t\t\treturn origHandler.apply( this, arguments );\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n\n\tjQuery.each([ \"keydown\", \"keyup\", \"keypress\" ], function() {\n\t\tjQuery.event.special[ this ] = { add: keyHandler };\n\t});\n\n})( jQuery );\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/jquery.isonscreen.js",
    "content": "/* Copyright (c) 2010\n * @author Laurence Wheway\n * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)\n * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.\n *\n * @version 1.2.0\n */\n(function($) {\n\tjQuery.extend({\n\t\tisOnScreen: function(box, container) {\n\t\t\t//ensure numbers come in as intgers (not strings) and remove 'px' is it's there\n\t\t\tfor(var i in box){box[i] = parseFloat(box[i])};\n\t\t\tfor(var i in container){container[i] = parseFloat(container[i])};\n\n\t\t\tif(!container){\n\t\t\t\tcontainer = {\n\t\t\t\t\tleft: $(window).scrollLeft(),\n\t\t\t\t\ttop: $(window).scrollTop(),\n\t\t\t\t\twidth: $(window).width(),\n\t\t\t\t\theight: $(window).height()\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(\tbox.left+box.width-container.left > 0 &&\n\t\t\t\tbox.left < container.width+container.left &&\n\t\t\t\tbox.top+box.height-container.top > 0 &&\n\t\t\t\tbox.top < container.height+container.top\n\t\t\t) return true;\n\t\t\treturn false;\n\t\t}\n\t})\n\n\n\tjQuery.fn.isOnScreen = function (container) {\n\t\tfor(var i in container){container[i] = parseFloat(container[i])};\n\n\t\tif(!container){\n\t\t\tcontainer = {\n\t\t\t\tleft: $(window).scrollLeft(),\n\t\t\t\ttop: $(window).scrollTop(),\n\t\t\t\twidth: $(window).width(),\n\t\t\t\theight: $(window).height()\n\t\t\t}\n\t\t}\n\n\t\tif(\t$(this).offset().left+$(this).width()-container.left > 0 &&\n\t\t\t$(this).offset().left < container.width+container.left &&\n\t\t\t$(this).offset().top+$(this).height()-container.top > 0 &&\n\t\t\t$(this).offset().top < container.height+container.top\n\t\t) return true;\n\t\treturn false;\n\t}\n})(jQuery);\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/manage_py.html",
    "content": "<!DOCTYPE html>\n<html>\n<head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=emulateIE7\" />\n    <title>Coverage for manage.py: 83%</title>\n    <link rel=\"stylesheet\" href=\"style.css\" type=\"text/css\">\n    <script type=\"text/javascript\" src=\"jquery.min.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.hotkeys.js\"></script>\n    <script type=\"text/javascript\" src=\"jquery.isonscreen.js\"></script>\n    <script type=\"text/javascript\" src=\"coverage_html.js\"></script>\n    <script type=\"text/javascript\">\n        jQuery(document).ready(coverage.pyfile_ready);\n    </script>\n</head>\n<body class=\"pyfile\">\n<div id=\"header\">\n    <div class=\"content\">\n        <h1>Coverage for <b>manage.py</b> :\n            <span class=\"pc_cov\">83%</span>\n        </h1>\n        <img id=\"keyboard_icon\" src=\"keybd_closed.png\" alt=\"Show keyboard shortcuts\" />\n        <h2 class=\"stats\">\n            12 statements &nbsp;\n            <button type=\"button\" class=\"run shortkey_r button_toggle_run\" title=\"Toggle lines run\">10 run</button>\n            <button type=\"button\" class=\"mis show_mis shortkey_m button_toggle_mis\" title=\"Toggle lines missing\">2 missing</button>\n            <button type=\"button\" class=\"exc show_exc shortkey_x button_toggle_exc\" title=\"Toggle lines excluded\">0 excluded</button>\n        </h2>\n    </div>\n</div>\n<div class=\"help_panel\">\n    <img id=\"panel_icon\" src=\"keybd_open.png\" alt=\"Hide keyboard shortcuts\" />\n    <p class=\"legend\">Hot-keys on this page</p>\n    <div>\n    <p class=\"keyhelp\">\n        <span class=\"key\">r</span>\n        <span class=\"key\">m</span>\n        <span class=\"key\">x</span>\n        <span class=\"key\">p</span> &nbsp; toggle line displays\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">j</span>\n        <span class=\"key\">k</span> &nbsp; next/prev highlighted chunk\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">0</span> &nbsp; (zero) top of page\n    </p>\n    <p class=\"keyhelp\">\n        <span class=\"key\">1</span> &nbsp; (one) first highlighted chunk\n    </p>\n    </div>\n</div>\n<div id=\"source\">\n    <p id=\"t1\" class=\"pln\"><span class=\"n\"><a href=\"#t1\">1</a></span><span class=\"t\"><span class=\"com\">#!/usr/bin/env python</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t2\" class=\"run\"><span class=\"n\"><a href=\"#t2\">2</a></span><span class=\"t\"><span class=\"str\">\"\"\"Django's command-line utility for administrative tasks.\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t3\" class=\"run\"><span class=\"n\"><a href=\"#t3\">3</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">os</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t4\" class=\"run\"><span class=\"n\"><a href=\"#t4\">4</a></span><span class=\"t\"><span class=\"key\">import</span> <span class=\"nam\">sys</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t5\" class=\"pln\"><span class=\"n\"><a href=\"#t5\">5</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t6\" class=\"pln\"><span class=\"n\"><a href=\"#t6\">6</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t7\" class=\"run\"><span class=\"n\"><a href=\"#t7\">7</a></span><span class=\"t\"><span class=\"key\">def</span> <span class=\"nam\">main</span><span class=\"op\">(</span><span class=\"op\">)</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t8\" class=\"pln\"><span class=\"n\"><a href=\"#t8\">8</a></span><span class=\"t\">    <span class=\"str\">\"\"\"Run administrative tasks.\"\"\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t9\" class=\"run\"><span class=\"n\"><a href=\"#t9\">9</a></span><span class=\"t\">    <span class=\"nam\">os</span><span class=\"op\">.</span><span class=\"nam\">environ</span><span class=\"op\">.</span><span class=\"nam\">setdefault</span><span class=\"op\">(</span><span class=\"str\">'DJANGO_SETTINGS_MODULE'</span><span class=\"op\">,</span> <span class=\"str\">'core.settings'</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t10\" class=\"run\"><span class=\"n\"><a href=\"#t10\">10</a></span><span class=\"t\">    <span class=\"key\">try</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t11\" class=\"run\"><span class=\"n\"><a href=\"#t11\">11</a></span><span class=\"t\">        <span class=\"key\">from</span> <span class=\"nam\">django</span><span class=\"op\">.</span><span class=\"nam\">core</span><span class=\"op\">.</span><span class=\"nam\">management</span> <span class=\"key\">import</span> <span class=\"nam\">execute_from_command_line</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t12\" class=\"mis show_mis\"><span class=\"n\"><a href=\"#t12\">12</a></span><span class=\"t\">    <span class=\"key\">except</span> <span class=\"nam\">ImportError</span> <span class=\"key\">as</span> <span class=\"nam\">exc</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t13\" class=\"mis show_mis\"><span class=\"n\"><a href=\"#t13\">13</a></span><span class=\"t\">        <span class=\"key\">raise</span> <span class=\"nam\">ImportError</span><span class=\"op\">(</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t14\" class=\"pln\"><span class=\"n\"><a href=\"#t14\">14</a></span><span class=\"t\">            <span class=\"str\">\"Couldn't import Django. Are you sure it's installed and \"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t15\" class=\"pln\"><span class=\"n\"><a href=\"#t15\">15</a></span><span class=\"t\">            <span class=\"str\">\"available on your PYTHONPATH environment variable? Did you \"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t16\" class=\"pln\"><span class=\"n\"><a href=\"#t16\">16</a></span><span class=\"t\">            <span class=\"str\">\"forget to activate a virtual environment?\"</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t17\" class=\"pln\"><span class=\"n\"><a href=\"#t17\">17</a></span><span class=\"t\">        <span class=\"op\">)</span> <span class=\"key\">from</span> <span class=\"nam\">exc</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t18\" class=\"run\"><span class=\"n\"><a href=\"#t18\">18</a></span><span class=\"t\">    <span class=\"nam\">execute_from_command_line</span><span class=\"op\">(</span><span class=\"nam\">sys</span><span class=\"op\">.</span><span class=\"nam\">argv</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t19\" class=\"pln\"><span class=\"n\"><a href=\"#t19\">19</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t20\" class=\"pln\"><span class=\"n\"><a href=\"#t20\">20</a></span><span class=\"t\">&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t21\" class=\"run\"><span class=\"n\"><a href=\"#t21\">21</a></span><span class=\"t\"><span class=\"key\">if</span> <span class=\"nam\">__name__</span> <span class=\"op\">==</span> <span class=\"str\">'__main__'</span><span class=\"op\">:</span>&nbsp;</span><span class=\"r\"></span></p>\n    <p id=\"t22\" class=\"run\"><span class=\"n\"><a href=\"#t22\">22</a></span><span class=\"t\">    <span class=\"nam\">main</span><span class=\"op\">(</span><span class=\"op\">)</span>&nbsp;</span><span class=\"r\"></span></p>\n</div>\n<div id=\"footer\">\n    <div class=\"content\">\n        <p>\n            <a class=\"nav\" href=\"index.html\">&#xab; index</a> &nbsp; &nbsp; <a class=\"nav\" href=\"https://coverage.readthedocs.io\">coverage.py v5.2.1</a>,\n            created at 2020-09-09 22:23 +0100\n        </p>\n    </div>\n</div>\n</body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/status.json",
    "content": "{\"format\":2,\"version\":\"5.2.1\",\"globals\":\"c3fc29d529a3af98c1a2065daa2addf6\",\"files\":{\"blog___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog___init___py.html\",\"relative_filename\":\"blog\\\\__init__.py\"}},\"blog_admin_py\":{\"hash\":\"c4a66b1f102077f89e36517da546c95e\",\"index\":{\"nums\":[1,7,0,0,0,0,0],\"html_filename\":\"blog_admin_py.html\",\"relative_filename\":\"blog\\\\admin.py\"}},\"blog_migrations_0001_initial_py\":{\"hash\":\"50ef0f6229ac0ec033622371063921a8\",\"index\":{\"nums\":[1,8,0,0,0,0,0],\"html_filename\":\"blog_migrations_0001_initial_py.html\",\"relative_filename\":\"blog\\\\migrations\\\\0001_initial.py\"}},\"blog_migrations___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_migrations___init___py.html\",\"relative_filename\":\"blog\\\\migrations\\\\__init__.py\"}},\"blog_models_py\":{\"hash\":\"90df91e80c9619f5d6119ab3b921b75b\",\"index\":{\"nums\":[1,26,0,0,0,0,0],\"html_filename\":\"blog_models_py.html\",\"relative_filename\":\"blog\\\\models.py\"}},\"blog_tests_py\":{\"hash\":\"8b1753411cf60b3959028fb10772600e\",\"index\":{\"nums\":[1,25,0,0,0,0,0],\"html_filename\":\"blog_tests_py.html\",\"relative_filename\":\"blog\\\\tests.py\"}},\"blog_urls_py\":{\"hash\":\"5de25e221f5f526ff48181ca0726b942\",\"index\":{\"nums\":[1,4,0,0,0,0,0],\"html_filename\":\"blog_urls_py.html\",\"relative_filename\":\"blog\\\\urls.py\"}},\"blog_api___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_api___init___py.html\",\"relative_filename\":\"blog_api\\\\__init__.py\"}},\"blog_api_admin_py\":{\"hash\":\"23b3f8ab894286afb6416200cf284c31\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_admin_py.html\",\"relative_filename\":\"blog_api\\\\admin.py\"}},\"blog_api_migrations___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"blog_api_migrations___init___py.html\",\"relative_filename\":\"blog_api\\\\migrations\\\\__init__.py\"}},\"blog_api_models_py\":{\"hash\":\"86756c38c1bc46a4338a9787cdec3d9f\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_models_py.html\",\"relative_filename\":\"blog_api\\\\models.py\"}},\"blog_api_tests_py\":{\"hash\":\"f19c76500f700766a5a7685bbf253a0f\",\"index\":{\"nums\":[1,1,0,0,0,0,0],\"html_filename\":\"blog_api_tests_py.html\",\"relative_filename\":\"blog_api\\\\tests.py\"}},\"blog_api_urls_py\":{\"hash\":\"f09d68f03286414b85aeac7ef46b526e\",\"index\":{\"nums\":[1,4,0,0,0,0,0],\"html_filename\":\"blog_api_urls_py.html\",\"relative_filename\":\"blog_api\\\\urls.py\"}},\"core___init___py\":{\"hash\":\"af9d0d0de0ea3b71d198bc63f1499a7d\",\"index\":{\"nums\":[1,0,0,0,0,0,0],\"html_filename\":\"core___init___py.html\",\"relative_filename\":\"core\\\\__init__.py\"}},\"core_settings_py\":{\"hash\":\"e1e7fa848f7f097353e13ef7e8a9e30b\",\"index\":{\"nums\":[1,19,0,0,0,0,0],\"html_filename\":\"core_settings_py.html\",\"relative_filename\":\"core\\\\settings.py\"}},\"core_urls_py\":{\"hash\":\"bf68d492820e7f916379b3f7de74ef01\",\"index\":{\"nums\":[1,3,0,0,0,0,0],\"html_filename\":\"core_urls_py.html\",\"relative_filename\":\"core\\\\urls.py\"}},\"manage_py\":{\"hash\":\"f8c6d49629b8856f7f764a87376dfe41\",\"index\":{\"nums\":[1,12,0,2,0,0,0],\"html_filename\":\"manage_py.html\",\"relative_filename\":\"manage.py\"}},\"blog_api_serializers_py\":{\"hash\":\"90d1f2282e1819a425b704c14e315a87\",\"index\":{\"nums\":[1,6,0,0,0,0,0],\"html_filename\":\"blog_api_serializers_py.html\",\"relative_filename\":\"blog_api\\\\serializers.py\"}},\"blog_api_views_py\":{\"hash\":\"a0950b25a090b5681ac439519a59bf48\",\"index\":{\"nums\":[1,10,0,0,0,0,0],\"html_filename\":\"blog_api_views_py.html\",\"relative_filename\":\"blog_api\\\\views.py\"}}}}"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/htmlcov/style.css",
    "content": "@charset \"UTF-8\";\n/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */\n/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */\n/* Don't edit this .css file. Edit the .scss file instead! */\nhtml, body, h1, h2, h3, p, table, td, th { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; }\n\nbody { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; font-size: 1em; background: #fff; color: #000; }\n\n@media (prefers-color-scheme: dark) { body { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { body { color: #eee; } }\n\nhtml > body { font-size: 16px; }\n\na:active, a:focus { outline: 2px dashed #007acc; }\n\np { font-size: .875em; line-height: 1.4em; }\n\ntable { border-collapse: collapse; }\n\ntd { vertical-align: top; }\n\ntable tr.hidden { display: none !important; }\n\np#no_rows { display: none; font-size: 1.2em; }\n\na.nav { text-decoration: none; color: inherit; }\n\na.nav:hover { text-decoration: underline; color: inherit; }\n\n#header { background: #f8f8f8; width: 100%; border-bottom: 1px solid #eee; }\n\n@media (prefers-color-scheme: dark) { #header { background: black; } }\n\n@media (prefers-color-scheme: dark) { #header { border-color: #333; } }\n\n.indexfile #footer { margin: 1rem 3rem; }\n\n.pyfile #footer { margin: 1rem 1rem; }\n\n#footer .content { padding: 0; color: #666; font-style: italic; }\n\n@media (prefers-color-scheme: dark) { #footer .content { color: #aaa; } }\n\n#index { margin: 1rem 0 0 3rem; }\n\n#header .content { padding: 1rem 3rem; }\n\nh1 { font-size: 1.25em; display: inline-block; }\n\n#filter_container { float: right; margin: 0 2em 0 0; }\n\n#filter_container input { width: 10em; padding: 0.2em 0.5em; border: 2px solid #ccc; background: #fff; color: #000; }\n\n@media (prefers-color-scheme: dark) { #filter_container input { border-color: #444; } }\n\n@media (prefers-color-scheme: dark) { #filter_container input { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { #filter_container input { color: #eee; } }\n\n#filter_container input:focus { border-color: #007acc; }\n\nh2.stats { margin-top: .5em; font-size: 1em; }\n\n.stats button { font-family: inherit; font-size: inherit; border: 1px solid; border-radius: .2em; color: inherit; padding: .1em .5em; margin: 1px calc(.1em + 1px); cursor: pointer; border-color: #ccc; }\n\n@media (prefers-color-scheme: dark) { .stats button { border-color: #444; } }\n\n.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }\n\n.stats button:active, .stats button:focus { outline: 2px dashed #007acc; }\n\n.stats button.run { background: #eeffee; }\n\n@media (prefers-color-scheme: dark) { .stats button.run { background: #373d29; } }\n\n.stats button.run.show_run { background: #dfd; border: 2px solid #00dd00; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.run.show_run { background: #373d29; } }\n\n.stats button.mis { background: #ffeeee; }\n\n@media (prefers-color-scheme: dark) { .stats button.mis { background: #4b1818; } }\n\n.stats button.mis.show_mis { background: #fdd; border: 2px solid #ff0000; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.mis.show_mis { background: #4b1818; } }\n\n.stats button.exc { background: #f7f7f7; }\n\n@media (prefers-color-scheme: dark) { .stats button.exc { background: #333; } }\n\n.stats button.exc.show_exc { background: #eee; border: 2px solid #808080; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.exc.show_exc { background: #333; } }\n\n.stats button.par { background: #ffffd5; }\n\n@media (prefers-color-scheme: dark) { .stats button.par { background: #650; } }\n\n.stats button.par.show_par { background: #ffa; border: 2px solid #dddd00; margin: 0 .1em; }\n\n@media (prefers-color-scheme: dark) { .stats button.par.show_par { background: #650; } }\n\n.help_panel, #source p .annotate.long { display: none; position: absolute; z-index: 999; background: #ffffcc; border: 1px solid #888; border-radius: .2em; color: #333; padding: .25em .5em; }\n\n#source p .annotate.long { white-space: normal; float: right; top: 1.75em; right: 1em; height: auto; }\n\n#keyboard_icon { float: right; margin: 5px; cursor: pointer; }\n\n.help_panel { padding: .5em; border: 1px solid #883; }\n\n.help_panel .legend { font-style: italic; margin-bottom: 1em; }\n\n.indexfile .help_panel { width: 20em; min-height: 4em; }\n\n.pyfile .help_panel { width: 16em; min-height: 8em; }\n\n#panel_icon { float: right; cursor: pointer; }\n\n.keyhelp { margin: .75em; }\n\n.keyhelp .key { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; }\n\n#source { padding: 1em 0 1em 3rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }\n\n#source p { position: relative; white-space: pre; }\n\n#source p * { box-sizing: border-box; }\n\n#source p .n { float: left; text-align: right; width: 3rem; box-sizing: border-box; margin-left: -3rem; padding-right: 1em; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }\n\n#source p .n a { text-decoration: none; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n a { color: #777; } }\n\n#source p .n a:hover { text-decoration: underline; color: #999; }\n\n@media (prefers-color-scheme: dark) { #source p .n a:hover { color: #777; } }\n\n#source p.highlight .n { background: #ffdd00; }\n\n#source p .t { display: inline-block; width: 100%; box-sizing: border-box; margin-left: -.5em; padding-left: 0.3em; border-left: 0.2em solid #fff; }\n\n@media (prefers-color-scheme: dark) { #source p .t { border-color: #1e1e1e; } }\n\n#source p .t:hover { background: #f2f2f2; }\n\n@media (prefers-color-scheme: dark) { #source p .t:hover { background: #282828; } }\n\n#source p .t:hover ~ .r .annotate.long { display: block; }\n\n#source p .t .com { color: #008000; font-style: italic; line-height: 1px; }\n\n@media (prefers-color-scheme: dark) { #source p .t .com { color: #6A9955; } }\n\n#source p .t .key { font-weight: bold; line-height: 1px; }\n\n#source p .t .str { color: #0451A5; }\n\n@media (prefers-color-scheme: dark) { #source p .t .str { color: #9CDCFE; } }\n\n#source p.mis .t { border-left: 0.2em solid #ff0000; }\n\n#source p.mis.show_mis .t { background: #fdd; }\n\n@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t { background: #4b1818; } }\n\n#source p.mis.show_mis .t:hover { background: #f2d2d2; }\n\n@media (prefers-color-scheme: dark) { #source p.mis.show_mis .t:hover { background: #532323; } }\n\n#source p.run .t { border-left: 0.2em solid #00dd00; }\n\n#source p.run.show_run .t { background: #dfd; }\n\n@media (prefers-color-scheme: dark) { #source p.run.show_run .t { background: #373d29; } }\n\n#source p.run.show_run .t:hover { background: #d2f2d2; }\n\n@media (prefers-color-scheme: dark) { #source p.run.show_run .t:hover { background: #404633; } }\n\n#source p.exc .t { border-left: 0.2em solid #808080; }\n\n#source p.exc.show_exc .t { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t { background: #333; } }\n\n#source p.exc.show_exc .t:hover { background: #e2e2e2; }\n\n@media (prefers-color-scheme: dark) { #source p.exc.show_exc .t:hover { background: #3c3c3c; } }\n\n#source p.par .t { border-left: 0.2em solid #dddd00; }\n\n#source p.par.show_par .t { background: #ffa; }\n\n@media (prefers-color-scheme: dark) { #source p.par.show_par .t { background: #650; } }\n\n#source p.par.show_par .t:hover { background: #f2f2a2; }\n\n@media (prefers-color-scheme: dark) { #source p.par.show_par .t:hover { background: #6d5d0c; } }\n\n#source p .r { position: absolute; top: 0; right: 2.5em; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; }\n\n#source p .annotate { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; color: #666; padding-right: .5em; }\n\n@media (prefers-color-scheme: dark) { #source p .annotate { color: #ddd; } }\n\n#source p .annotate.short:hover ~ .long { display: block; }\n\n#source p .annotate.long { width: 30em; right: 2.5em; }\n\n#source p input { display: none; }\n\n#source p input ~ .r label.ctx { cursor: pointer; border-radius: .25em; }\n\n#source p input ~ .r label.ctx::before { content: \"▶ \"; }\n\n#source p input ~ .r label.ctx:hover { background: #d5f7ff; color: #666; }\n\n@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { background: #0f3a42; } }\n\n@media (prefers-color-scheme: dark) { #source p input ~ .r label.ctx:hover { color: #aaa; } }\n\n#source p input:checked ~ .r label.ctx { background: #aef; color: #666; border-radius: .75em .75em 0 0; padding: 0 .5em; margin: -.25em 0; }\n\n@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { background: #056; } }\n\n@media (prefers-color-scheme: dark) { #source p input:checked ~ .r label.ctx { color: #aaa; } }\n\n#source p input:checked ~ .r label.ctx::before { content: \"▼ \"; }\n\n#source p input:checked ~ .ctxs { padding: .25em .5em; overflow-y: scroll; max-height: 10.5em; }\n\n#source p label.ctx { color: #999; display: inline-block; padding: 0 .5em; font-size: .8333em; }\n\n@media (prefers-color-scheme: dark) { #source p label.ctx { color: #777; } }\n\n#source p .ctxs { display: block; max-height: 0; overflow-y: hidden; transition: all .2s; padding: 0 .5em; font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif; white-space: nowrap; background: #aef; border-radius: .25em; margin-right: 1.75em; }\n\n@media (prefers-color-scheme: dark) { #source p .ctxs { background: #056; } }\n\n#source p .ctxs span { display: block; text-align: right; }\n\n#index { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.875em; }\n\n#index table.index { margin-left: -.5em; }\n\n#index td, #index th { text-align: right; width: 5em; padding: .25em .5em; border-bottom: 1px solid #eee; }\n\n@media (prefers-color-scheme: dark) { #index td, #index th { border-color: #333; } }\n\n#index td.name, #index th.name { text-align: left; width: auto; }\n\n#index th { font-style: italic; color: #333; cursor: pointer; }\n\n@media (prefers-color-scheme: dark) { #index th { color: #ddd; } }\n\n#index th:hover { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index th:hover { background: #333; } }\n\n#index th.headerSortDown, #index th.headerSortUp { white-space: nowrap; background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index th.headerSortDown, #index th.headerSortUp { background: #333; } }\n\n#index th.headerSortDown:after { content: \" ↑\"; }\n\n#index th.headerSortUp:after { content: \" ↓\"; }\n\n#index td.name a { text-decoration: none; color: inherit; }\n\n#index tr.total td, #index tr.total_dynamic td { font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; }\n\n#index tr.file:hover { background: #eee; }\n\n@media (prefers-color-scheme: dark) { #index tr.file:hover { background: #333; } }\n\n#index tr.file:hover td.name { text-decoration: underline; color: inherit; }\n\n#scroll_marker { position: fixed; right: 0; top: 0; width: 16px; height: 100%; background: #fff; border-left: 1px solid #eee; will-change: transform; }\n\n@media (prefers-color-scheme: dark) { #scroll_marker { background: #1e1e1e; } }\n\n@media (prefers-color-scheme: dark) { #scroll_marker { border-color: #333; } }\n\n#scroll_marker .marker { background: #ccc; position: absolute; min-height: 3px; width: 100%; }\n\n@media (prefers-color-scheme: dark) { #scroll_marker .marker { background: #444; } }\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/manage.py",
    "content": "#!/usr/bin/env python\n\"\"\"Django's command-line utility for administrative tasks.\"\"\"\nimport os\nimport sys\n\n\ndef main():\n    \"\"\"Run administrative tasks.\"\"\"\n    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'core.settings')\n    try:\n        from django.core.management import execute_from_command_line\n    except ImportError as exc:\n        raise ImportError(\n            \"Couldn't import Django. Are you sure it's installed and \"\n            \"available on your PYTHONPATH environment variable? Did you \"\n            \"forget to activate a virtual environment?\"\n        ) from exc\n    execute_from_command_line(sys.argv)\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/requirements.txt",
    "content": "asgiref==3.3.4\ncoverage==5.5\nDjango==3.2\ndjango-cors-headers==3.7.0\ndjangorestframework==3.12.4\npytz==2021.1\nsqlparse==0.4.1\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/django/templates/blog/index.html",
    "content": "//index"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/build\n\n# misc\n.DS_Store\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/README.md",
    "content": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.<br />\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.<br />\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.<br />\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.<br />\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.<br />\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## Learn More\n\nYou can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).\n\nTo learn React, check out the [React documentation](https://reactjs.org/).\n\n### Code Splitting\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting\n\n### Analyzing the Bundle Size\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size\n\n### Making a Progressive Web App\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\n\n### Advanced Configuration\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration\n\n### Deployment\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/deployment\n\n### `npm run build` fails to minify\n\nThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/package.json",
    "content": "{\n  \"name\": \"blogapi\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"dependencies\": {\n    \"@material-ui/core\": \"^4.11.0\",\n    \"@testing-library/jest-dom\": \"^4.2.4\",\n    \"@testing-library/react\": \"^9.5.0\",\n    \"@testing-library/user-event\": \"^7.2.1\",\n    \"react\": \"^16.13.1\",\n    \"react-dom\": \"^16.13.1\",\n    \"react-router-dom\": \"^5.2.0\",\n    \"react-scripts\": \"3.4.3\"\n  },\n  \"scripts\": {\n    \"start\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test\",\n    \"eject\": \"react-scripts eject\"\n  },\n  \"eslintConfig\": {\n    \"extends\": \"react-app\"\n  },\n  \"browserslist\": {\n    \"production\": [\n      \">0.2%\",\n      \"not dead\",\n      \"not op_mini all\"\n    ],\n    \"development\": [\n      \"last 1 chrome version\",\n      \"last 1 firefox version\",\n      \"last 1 safari version\"\n    ]\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/public/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <link rel=\"icon\" href=\"%PUBLIC_URL%/favicon.ico\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <meta name=\"theme-color\" content=\"#000000\" />\n    <meta\n      name=\"description\"\n      content=\"Web site created using create-react-app\"\n    />\n    <link rel=\"apple-touch-icon\" href=\"%PUBLIC_URL%/logo192.png\" />\n    <!--\n      manifest.json provides metadata used when your web app is installed on a\n      user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n    -->\n    <link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\" />\n    <!--\n      Notice the use of %PUBLIC_URL% in the tags above.\n      It will be replaced with the URL of the `public` folder during the build.\n      Only files inside the `public` folder can be referenced from the HTML.\n\n      Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n      work correctly both with client-side routing and a non-root public URL.\n      Learn how to configure a non-root public URL by running `npm run build`.\n    -->\n    <title>React App</title>\n  </head>\n  <body>\n    <noscript>You need to enable JavaScript to run this app.</noscript>\n    <div id=\"root\"></div>\n    <!--\n      This HTML file is a template.\n      If you open it directly in the browser, you will see an empty page.\n\n      You can add webfonts, meta tags, or analytics to this file.\n      The build step will place the bundled scripts into the <body> tag.\n\n      To begin the development, run `npm start` or `yarn start`.\n      To create a production bundle, use `npm run build` or `yarn build`.\n    -->\n  </body>\n</html>\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/public/manifest.json",
    "content": "{\n  \"short_name\": \"React App\",\n  \"name\": \"Create React App Sample\",\n  \"icons\": [\n    {\n      \"src\": \"favicon.ico\",\n      \"sizes\": \"64x64 32x32 24x24 16x16\",\n      \"type\": \"image/x-icon\"\n    },\n    {\n      \"src\": \"logo192.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"192x192\"\n    },\n    {\n      \"src\": \"logo512.png\",\n      \"type\": \"image/png\",\n      \"sizes\": \"512x512\"\n    }\n  ],\n  \"start_url\": \".\",\n  \"display\": \"standalone\",\n  \"theme_color\": \"#000000\",\n  \"background_color\": \"#ffffff\"\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/public/robots.txt",
    "content": "# https://www.robotstxt.org/robotstxt.html\nUser-agent: *\nDisallow:\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/App.css",
    "content": ".App {\n  text-align: center;\n}\n\n.App-logo {\n  height: 40vmin;\n  pointer-events: none;\n}\n\n@media (prefers-reduced-motion: no-preference) {\n  .App-logo {\n    animation: App-logo-spin infinite 20s linear;\n  }\n}\n\n.App-header {\n  background-color: #282c34;\n  min-height: 100vh;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  font-size: calc(10px + 2vmin);\n  color: white;\n}\n\n.App-link {\n  color: #61dafb;\n}\n\n@keyframes App-logo-spin {\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/App.js",
    "content": "import React, { useEffect, useState } from 'react';\nimport './App.css';\nimport Posts from './components/Posts';\nimport PostLoadingComponent from './components/PostLoading';\n\nfunction App() {\n\tconst PostLoading = PostLoadingComponent(Posts);\n\tconst [appState, setAppState] = useState({\n\t\tloading: false,\n\t\tposts: null,\n\t});\n\n\tuseEffect(() => {\n\t\tsetAppState({ loading: true });\n\t\tconst apiUrl = `http://127.0.0.1:8000/api/`;\n\t\tfetch(apiUrl)\n\t\t\t.then((data) => data.json())\n\t\t\t.then((posts) => {\n\t\t\t\tsetAppState({ loading: false, posts: posts });\n\t\t\t});\n\t}, [setAppState]);\n\treturn (\n\t\t<div className=\"App\">\n\t\t\t<h1>Latest Posts</h1>\n\t\t\t<PostLoading isLoading={appState.loading} posts={appState.posts} />\n\t\t</div>\n\t);\n}\nexport default App;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/App.test.js",
    "content": "import React from 'react';\nimport { render } from '@testing-library/react';\nimport App from './App';\n\ntest('renders learn react link', () => {\n  const { getByText } = render(<App />);\n  const linkElement = getByText(/learn react/i);\n  expect(linkElement).toBeInTheDocument();\n});\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/components/Footer.js",
    "content": "import React from 'react';\nimport Container from '@material-ui/core/Container';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport Grid from '@material-ui/core/Grid';\nimport Link from '@material-ui/core/Link';\nimport Box from '@material-ui/core/Box';\n\nconst useStyles = makeStyles((theme) => ({\n\tfooter: {\n\t\tborderTop: `1px solid ${theme.palette.divider}`,\n\t\tmarginTop: theme.spacing(8),\n\t\tpaddingTop: theme.spacing(3),\n\t\tpaddingBottom: theme.spacing(3),\n\t\t[theme.breakpoints.up('sm')]: {\n\t\t\tpaddingTop: theme.spacing(6),\n\t\t\tpaddingBottom: theme.spacing(6),\n\t\t},\n\t},\n}));\n\nfunction Copyright() {\n\treturn (\n\t\t<Typography variant=\"body2\" color=\"textSecondary\" align=\"center\">\n\t\t\t{'Copyright © '}\n\t\t\t<Link color=\"inherit\" href=\"https://material-ui.com/\">\n\t\t\t\tYour Website\n\t\t\t</Link>{' '}\n\t\t\t{new Date().getFullYear()}\n\t\t\t{'.'}\n\t\t</Typography>\n\t);\n}\n\nconst footers = [\n\t{\n\t\ttitle: 'Company',\n\t\tdescription: ['Team', 'History', 'Contact us', 'Locations'],\n\t},\n\t{\n\t\ttitle: 'Features',\n\t\tdescription: [\n\t\t\t'Cool stuff',\n\t\t\t'Random feature',\n\t\t\t'Team feature',\n\t\t\t'Developer stuff',\n\t\t\t'Another one',\n\t\t],\n\t},\n\t{\n\t\ttitle: 'Resources',\n\t\tdescription: [\n\t\t\t'Resource',\n\t\t\t'Resource name',\n\t\t\t'Another resource',\n\t\t\t'Final resource',\n\t\t],\n\t},\n\t{\n\t\ttitle: 'Legal',\n\t\tdescription: ['Privacy policy', 'Terms of use'],\n\t},\n];\n\nfunction Footer() {\n\tconst classes = useStyles();\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Container maxWidth=\"md\" component=\"footer\" className={classes.footer}>\n\t\t\t\t<Grid container spacing={4} justify=\"space-evenly\">\n\t\t\t\t\t{footers.map((footer) => (\n\t\t\t\t\t\t<Grid item xs={6} sm={3} key={footer.title}>\n\t\t\t\t\t\t\t<Typography variant=\"h6\" color=\"textPrimary\" gutterBottom>\n\t\t\t\t\t\t\t\t{footer.title}\n\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t{footer.description.map((item) => (\n\t\t\t\t\t\t\t\t\t<li key={item}>\n\t\t\t\t\t\t\t\t\t\t<Link href=\"#\" variant=\"subtitle1\" color=\"textSecondary\">\n\t\t\t\t\t\t\t\t\t\t\t{item}\n\t\t\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t))}\n\t\t\t\t</Grid>\n\t\t\t\t<Box mt={5}>\n\t\t\t\t\t<Copyright />\n\t\t\t\t</Box>\n\t\t\t</Container>\n\t\t</React.Fragment>\n\t);\n}\n\nexport default Footer;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/components/Header.js",
    "content": "import React from 'react';\nimport AppBar from '@material-ui/core/AppBar';\nimport Toolbar from '@material-ui/core/Toolbar';\nimport Typography from '@material-ui/core/Typography';\nimport CssBaseline from '@material-ui/core/CssBaseline';\nimport { makeStyles } from '@material-ui/core/styles';\n\nconst useStyles = makeStyles((theme) => ({\n\tappBar: {\n\t\tborderBottom: `1px solid ${theme.palette.divider}`,\n\t},\n}));\n\nfunction Header() {\n\tconst classes = useStyles();\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<CssBaseline />\n\t\t\t<AppBar\n\t\t\t\tposition=\"static\"\n\t\t\t\tcolor=\"white\"\n\t\t\t\televation={0}\n\t\t\t\tclassName={classes.appBar}\n\t\t\t>\n\t\t\t\t<Toolbar>\n\t\t\t\t\t<Typography variant=\"h6\" color=\"inherit\" noWrap>\n\t\t\t\t\t\tBlogmeUp\n\t\t\t\t\t</Typography>\n\t\t\t\t</Toolbar>\n\t\t\t</AppBar>\n\t\t</React.Fragment>\n\t);\n}\n\nexport default Header;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/components/PostLoading.js",
    "content": "import React from 'react';\n\nfunction PostLoading(Component) {\n\treturn function PostLoadingComponent({ isLoading, ...props }) {\n\t\tif (!isLoading) return <Component {...props} />;\n\t\treturn (\n\t\t\t<p style={{ fontSize: '25px' }}>\n\t\t\t\tWe are waiting for the data to load!...\n\t\t\t</p>\n\t\t);\n\t};\n}\nexport default PostLoading;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/components/Posts.js",
    "content": "import React from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\nimport Card from '@material-ui/core/Card';\nimport CardContent from '@material-ui/core/CardContent';\nimport CardMedia from '@material-ui/core/CardMedia';\nimport Grid from '@material-ui/core/Grid';\nimport Typography from '@material-ui/core/Typography';\nimport Container from '@material-ui/core/Container';\n\nconst useStyles = makeStyles((theme) => ({\n\tcardMedia: {\n\t\tpaddingTop: '56.25%', // 16:9\n\t},\n\tlink: {\n\t\tmargin: theme.spacing(1, 1.5),\n\t},\n\tcardHeader: {\n\t\tbackgroundColor:\n\t\t\ttheme.palette.type === 'light'\n\t\t\t\t? theme.palette.grey[200]\n\t\t\t\t: theme.palette.grey[700],\n\t},\n\tpostTitle: {\n\t\tfontSize: '16px',\n\t\ttextAlign: 'left',\n\t},\n\tpostText: {\n\t\tdisplay: 'flex',\n\t\tjustifyContent: 'left',\n\t\talignItems: 'baseline',\n\t\tfontSize: '12px',\n\t\ttextAlign: 'left',\n\t\tmarginBottom: theme.spacing(2),\n\t},\n}));\n\nconst Posts = (props) => {\n\tconst { posts } = props;\n\tconst classes = useStyles();\n\tif (!posts || posts.length === 0) return <p>Can not find any posts, sorry</p>;\n\treturn (\n\t\t<React.Fragment>\n\t\t\t<Container maxWidth=\"md\" component=\"main\">\n\t\t\t\t<Grid container spacing={5} alignItems=\"flex-end\">\n\t\t\t\t\t{posts.map((post) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t// Enterprise card is full width at sm breakpoint\n\t\t\t\t\t\t\t<Grid item key={post.id} xs={12} md={4}>\n\t\t\t\t\t\t\t\t<Card className={classes.card}>\n\t\t\t\t\t\t\t\t\t<CardMedia\n\t\t\t\t\t\t\t\t\t\tclassName={classes.cardMedia}\n\t\t\t\t\t\t\t\t\t\timage=\"https://source.unsplash.com/random\"\n\t\t\t\t\t\t\t\t\t\ttitle=\"Image title\"\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t<CardContent className={classes.cardContent}>\n\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\tgutterBottom\n\t\t\t\t\t\t\t\t\t\t\tvariant=\"h6\"\n\t\t\t\t\t\t\t\t\t\t\tcomponent=\"h2\"\n\t\t\t\t\t\t\t\t\t\t\tclassName={classes.postTitle}\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{post.title.substr(0, 50)}...\n\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t<div className={classes.postText}>\n\t\t\t\t\t\t\t\t\t\t\t<Typography\n\t\t\t\t\t\t\t\t\t\t\t\tcomponent=\"p\"\n\t\t\t\t\t\t\t\t\t\t\t\tcolor=\"textPrimary\"\n\t\t\t\t\t\t\t\t\t\t\t></Typography>\n\t\t\t\t\t\t\t\t\t\t\t<Typography variant=\"p\" color=\"textSecondary\">\n\t\t\t\t\t\t\t\t\t\t\t\t{post.excerpt.substr(0, 60)}...\n\t\t\t\t\t\t\t\t\t\t\t</Typography>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</CardContent>\n\t\t\t\t\t\t\t\t</Card>\n\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</Grid>\n\t\t\t</Container>\n\t\t</React.Fragment>\n\t);\n};\nexport default Posts;\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/index.css",
    "content": "body {\n  margin: 0;\n  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n    sans-serif;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n    monospace;\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/index.js",
    "content": "import React from 'react';\nimport ReactDOM from 'react-dom';\nimport * as serviceWorker from './serviceWorker';\nimport './index.css';\nimport { Route, BrowserRouter as Router, Switch } from 'react-router-dom';\nimport App from './App';\nimport Header from './components/Header';\nimport Footer from './components/Footer';\n\nconst routing = (\n\t<Router>\n\t\t<React.StrictMode>\n\t\t\t<Header />\n\t\t\t<Switch>\n\t\t\t\t<Route exact path=\"/\" component={App} />\n\t\t\t</Switch>\n\t\t\t<Footer />\n\t\t</React.StrictMode>\n\t</Router>\n);\n\nReactDOM.render(routing, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/serviceWorker.js",
    "content": "// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n  window.location.hostname === 'localhost' ||\n    // [::1] is the IPv6 localhost address.\n    window.location.hostname === '[::1]' ||\n    // 127.0.0.0/8 are considered localhost for IPv4.\n    window.location.hostname.match(\n      /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n    )\n);\n\nexport function register(config) {\n  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n    // The URL constructor is available in all browsers that support SW.\n    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n    if (publicUrl.origin !== window.location.origin) {\n      // Our service worker won't work if PUBLIC_URL is on a different origin\n      // from what our page is served on. This might happen if a CDN is used to\n      // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n      return;\n    }\n\n    window.addEventListener('load', () => {\n      const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n      if (isLocalhost) {\n        // This is running on localhost. Let's check if a service worker still exists or not.\n        checkValidServiceWorker(swUrl, config);\n\n        // Add some additional logging to localhost, pointing developers to the\n        // service worker/PWA documentation.\n        navigator.serviceWorker.ready.then(() => {\n          console.log(\n            'This web app is being served cache-first by a service ' +\n              'worker. To learn more, visit https://bit.ly/CRA-PWA'\n          );\n        });\n      } else {\n        // Is not localhost. Just register service worker\n        registerValidSW(swUrl, config);\n      }\n    });\n  }\n}\n\nfunction registerValidSW(swUrl, config) {\n  navigator.serviceWorker\n    .register(swUrl)\n    .then(registration => {\n      registration.onupdatefound = () => {\n        const installingWorker = registration.installing;\n        if (installingWorker == null) {\n          return;\n        }\n        installingWorker.onstatechange = () => {\n          if (installingWorker.state === 'installed') {\n            if (navigator.serviceWorker.controller) {\n              // At this point, the updated precached content has been fetched,\n              // but the previous service worker will still serve the older\n              // content until all client tabs are closed.\n              console.log(\n                'New content is available and will be used when all ' +\n                  'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n              );\n\n              // Execute callback\n              if (config && config.onUpdate) {\n                config.onUpdate(registration);\n              }\n            } else {\n              // At this point, everything has been precached.\n              // It's the perfect time to display a\n              // \"Content is cached for offline use.\" message.\n              console.log('Content is cached for offline use.');\n\n              // Execute callback\n              if (config && config.onSuccess) {\n                config.onSuccess(registration);\n              }\n            }\n          }\n        };\n      };\n    })\n    .catch(error => {\n      console.error('Error during service worker registration:', error);\n    });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n  // Check if the service worker can be found. If it can't reload the page.\n  fetch(swUrl, {\n    headers: { 'Service-Worker': 'script' },\n  })\n    .then(response => {\n      // Ensure service worker exists, and that we really are getting a JS file.\n      const contentType = response.headers.get('content-type');\n      if (\n        response.status === 404 ||\n        (contentType != null && contentType.indexOf('javascript') === -1)\n      ) {\n        // No service worker found. Probably a different app. Reload the page.\n        navigator.serviceWorker.ready.then(registration => {\n          registration.unregister().then(() => {\n            window.location.reload();\n          });\n        });\n      } else {\n        // Service worker found. Proceed as normal.\n        registerValidSW(swUrl, config);\n      }\n    })\n    .catch(() => {\n      console.log(\n        'No internet connection found. App is running in offline mode.'\n      );\n    });\n}\n\nexport function unregister() {\n  if ('serviceWorker' in navigator) {\n    navigator.serviceWorker.ready\n      .then(registration => {\n        registration.unregister();\n      })\n      .catch(error => {\n        console.error(error.message);\n      });\n  }\n}\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/blogapi/src/setupTests.js",
    "content": "// jest-dom adds custom jest matchers for asserting on DOM nodes.\n// allows you to do things like:\n// expect(element).toHaveTextContent(/react/i)\n// learn more: https://github.com/testing-library/jest-dom\nimport '@testing-library/jest-dom/extend-expect';\n"
  },
  {
    "path": "Part-6 Nginx React and Django Gunicorn/Starting Repository/react/commands.txt",
    "content": "npx create-react-app blogapi .\ncd blogapi\nnpm start\nnpm install react-router-dom\nnpm install @material-ui/core\npip install django-cors-headers\n\nInfo:\nStrict Mode\nStrictMode is a tool for highlighting potential problems in an application. Like Fragment , StrictMode does not render. React StrictMode is a feature added in version 16.3 and aimed to help us in finding potential problems in an application."
  },
  {
    "path": "README.md",
    "content": "![veryacademy](/logo.svg)\n\n<div align=\"center\">\n  <h1>Docker Mastery with Django</h1>\n</div>\n\n<div align=\"center\">\n  <strong>\n  Learn how to use Docker, Compose and Kubernetes with Django for better software building and testing.\n  </strong>\n</div>\n\n<div align=\"center\">\n  Docker Mastery with Django is an open-source initiative and tutorial series. Learn from a beginner level how to use Docker, compose and Kubernetes for django projects.\n</div>\n\n<br>\n\n<div align=\"center\">\n  Please join our active, growing community: <br>\n  <a href=\"#\">Website (Coming Soon)</a>\n  <span> | </span>\n  <a href=\"https://twitter.com/VeryAcademy\">Twitter</a>\n  <span> | </span>\n  <a href=\"https://www.youtube.com/veryacademy\">YouTube</a>\n</div>\n\n<br>\n\n<div align=\"center\">\n<a href=\"https://www.paypal.com/donate?hosted_button_id=W55GVT4UPXPYE\" \ntarget=\"_blank\">\n<img src=\"https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif\" alt=\"PayPal this\" \ntitle=\"PayPal – The safer, easier way to pay online!\" border=\"0\" />\n</a>\n</div>\n\n## Aims of this course\nThe aims of this course is to:\n* learn Docker, Compose and Kubernetes for managing, deploying and testing Django projects\n\n## Course Introduction\nThe Docker Mastery with Django Tutorial Series is designed for students who wants to learn how to use Docker, Compose and Kubernetes while developing with the Django Framework. This course is a great way to start learning how to dockerize Django and JS applications. We start from a beginners level slowly moving into more advanced topics. I have tried to design this course to be modular so that you could also focus in on particular subjects, tutorials or aspects of Docker/Compose/Kubernetes should you prefer this mode of learning.\n\nOn this course you will be taught a wide range of skills, here are a few topics that we will be learning:\n\n* How to use Docker, Compose and Kubernetes on your machine for better software building and testing.\n* Build and publish your own custom Django images\n* Gain the skills to build Django development environments with your code running in containers.\n\n## Tutorials\nThe tutorials, can be found [here](https://www.youtube.com/playlist?list=PLOLrQ9Pn6cazCfL7v4CdaykNoWMQymM_C) on our YouTube channel course playlist.\n\n## Prerequisites\n* Local admin access to install Docker and Python for Mac/Windows/Linux.\n* Have a GitHub and Docker Hub account.\n\n## Who is this course for\nThis course tries to cater for many types of learners:\n\n* new developers,\n* not so new developers, \n* degree students,\n* Everyone else who is looking to learn Docker\n\n## Course Content\n\n<details>\n<summary><b>Part-1 How to Dockerize a Django application</b>\n</summary>\n<br>\nTake your first steps with Docker containers. In this tutorial we are going to Dockerize a Django application as a complete beginner to Docker. We first Create a new Django application then Prepare a Django app for Docker building a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Now we go ahead and Build a Docker image and then finally Start a new Docker container to display Django running in our container.\n<br><br>\nLink to Tutorial https://youtu.be/W5Ov0H7E_o4\n</details>\n\n<details>\n<summary><b>Part-2 Build and start a Django project with Docker Compose & work in a Docker Container</b>\n</summary>\n<br>\nIn this Docker compose tutorial we start an application with Docker Compose and run it in a container. I will then show you how to configure a volume to build a mirrored folder from your computer and the container. This way you can develop on your computer but host the application in a container. This is a docker compose tutorial for beginners. Take your first steps with Docker containers. \n<br><br>\nLink to Tutorial https://youtu.be/aMqs_y6dZw4\n</details>\n\n<details>\n<summary><b>Part-3 How to configure PostgreSQL or MySQL database with Python Django</b>\n</summary>\n<br>\nIn this Docker compose tutorial we start a Django application with Docker Compose and run it in a container. I will then show you how to configure a volume to build a mirrored folder from your computer and the container. This way you can develop on your computer but host the application in a container. Next up we configure first a PostgreSQL database and attach it to Django then build a bassline configuration for MySQL for a Django application. This is a docker compose tutorial for beginners. Take your first steps with Docker containers. \n<br><br>\nLink to Tutorial https://youtu.be/q75wgk9jVjA\n</details>\n\n<details>\n<summary><b>Part-4 Docker Compose | Django | PostgreSQL | Redis & Celery Baseline Configuration</b>\n</summary>\n<br>\nIn this Docker compose tutorial we setup Django with Postgres, Redis and Celery. We conclude the tutorial by building a new image, testing the setup by creating a simple Celery task.\n<br><br>\nLink to Tutorial https://youtu.be/zGtGliXMrPQ\n</details>\n\n<details>\n<summary><b>Part-5 How to Dockerize a React application</b>\n</summary>\n<br>\nThis is a docker tutorial for beginners. Take your first steps with Docker containers with React. In this tutorial we are going to Dockerize a React application as a complete beginner to Docker. We first Create a new React application then Prepare a React app for Docker building a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Now we go ahead and Build a Docker image and then finally Start a new Docker container to display React running in our container.\n<br><br>\nLink to Tutorial https://youtu.be/xtllpDEOw4w\n</details>\n\n<details>\n<summary><b>Part-6 Docker | Towards serving React (Nginx) with Django API (gunicorn)</b>\n</summary>\n<br>\nThis is a docker compose tutorial we take your first steps creating a deployment setup with React and Django running on a Nginx server, supported with gunicorn for Django. Having already created a basic React and Django application, see the link below for repositories, we first build the docker files needed for both Django and React before then building a docker compose file. This tutorial gives you a better understanding of docker volumes and bind mounts as we look at using both tools. We then build our nginx configuration to serve react from the root directory. Finally we expand the nginx configuration to include a proxy to the Django API.\n<br><br>\nLink to Tutorial https://youtu.be/e63EBEFJkH0\n</details>\n\n<details>\n<summary><b>Part-7 Docker | RabbitMQ | Celery | Quick-Start guide</b>\n</summary>\n<br>\nWelcome to another Docker tutorial. The Windows platform does not support easy setup and configuration of Redis or RabbitMQ. This tutorial takes you through the quick steps of setting up RabbitMQ with Docker for your Django Celery applications. The end result, RabbitMQ is severed from a Docker container and can be used for any of your Django apps locally. \n<br><br>\nLink to Tutorial https://youtu.be/t2ZoVlqlQyA\n</details>\n\n<details>\n<summary><b>Part-8 Docker | PostgreSQL | pgAdmin and Custom Network Configuration</b>\n</summary>\n<br>\nWelcome to another Docker-Compose tutorial. The Windows platform does support PostgreSQL, but it can be much more convenient to install Postgres and manage PostgreSQL with pgAdmin in containers. In this tutorial we create a docker-compose file to configure Postgres and pgAdmin allowing any other application, in this tutorial Django to connect to it. We go the extra step of configuring the network, assigning static IP addressed to the containers.\n<br><br>\nLink to Tutorial https://youtu.be/_oqSGs3rrf8\n</details>\n\n## Community Driven Content\nI activity try and promote feedback to taylor courses to your needs and wishes. Here is a list of features requested by community. If you would like to request any other feature not listed here - please visit our YouTube channel and make a comment.\n\n#### Next Planned Tutorials\n+ Deploying Docker/Django to Heroku\n\n## Contributing\nThis project welcomes contributions and suggestions. At present, we are not accepting any code contributions. Please visit our YouTube channel to make tutorial suggestions.\n\n## Instructor\nZander, the founder of Very Academy has over 20 years of development and educational lecturing experience. He is now focused on developing free technical courses and resources on a range of subjects.\n\n## License\n[MIT License](LICENSE)\n"
  }
]