diff --git a/KINGLET/KINGLET (2).pdf b/KINGLET/KINGLET (2).pdf new file mode 100644 index 00000000..e22eed42 Binary files /dev/null and b/KINGLET/KINGLET (2).pdf differ diff --git a/KINGLET/KINGLET.pptx b/KINGLET/KINGLET.pptx new file mode 100644 index 00000000..95a93fc7 Binary files /dev/null and b/KINGLET/KINGLET.pptx differ diff --git a/KINGLET/Nutri-Track b/KINGLET/Nutri-Track new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/KINGLET/Nutri-Track @@ -0,0 +1 @@ + diff --git a/KINGLET/proj dir/apps nutritrack.py b/KINGLET/proj dir/apps nutritrack.py new file mode 100644 index 00000000..4fba9d2f --- /dev/null +++ b/KINGLET/proj dir/apps nutritrack.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class NutritrackConfig(AppConfig): + name = 'nutritrack' diff --git a/KINGLET/proj dir/apps(calc).py b/KINGLET/proj dir/apps(calc).py new file mode 100644 index 00000000..9c98f6ad --- /dev/null +++ b/KINGLET/proj dir/apps(calc).py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class CalcConfig(AppConfig): + name = 'calc' diff --git a/KINGLET/proj dir/base temp.html b/KINGLET/proj dir/base temp.html new file mode 100644 index 00000000..80a9ca61 --- /dev/null +++ b/KINGLET/proj dir/base temp.html @@ -0,0 +1,15 @@ + + + + + + Nutri-Track + + + + {% block content %} + + {% endblock %} + + + diff --git a/KINGLET/proj dir/home(temp).html b/KINGLET/proj dir/home(temp).html new file mode 100644 index 00000000..52f8c57b --- /dev/null +++ b/KINGLET/proj dir/home(temp).html @@ -0,0 +1,14 @@ +{% extends 'base.html'%} +{% block content %} +

HELLO {{name}}!!!

+ +
+ {% csrf_token%} + Enter Age:
+ Enter Gender:
+ Enter Weight(kg):
+ Enter Height(m):
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/KINGLET/proj dir/index(temp).html b/KINGLET/proj dir/index(temp).html new file mode 100644 index 00000000..b08bfac4 --- /dev/null +++ b/KINGLET/proj dir/index(temp).html @@ -0,0 +1,330 @@ +{% load static %} + + + + + + + + Serenity Bootstrap Template - Index + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Welcome to Nutri-Track

+

Stay on top of your health with our help

+ Get Started +
+
+ +
+ + +
+
+ +
+
+
+ +
+
+ + 65 +

Happy Clients

+
+
+ +
+
+ + 85 +

Projects

+
+
+ +
+
+ + 12 +

Years of experience

+
+
+ +
+
+ + 15 +

Awards

+
+
+ +
+
+
+ +
+ +
+ + +
+ +
+

Voluptatem dignissimos provident quasi corporis voluptates sit assumenda.

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore + magna aliqua. +

+
    +
  • Ullamco laboris nisi ut aliquip ex ea commodo consequat.
  • +
  • Duis aute irure dolor in reprehenderit in voluptate velit.
  • +
  • Voluptate repellendus pariatur reprehenderit corporis sint.
  • +
  • Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate trideta storacalaperda mastiro dolore eu fugiat nulla pariatur.
  • +
+

+ Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum +

+
+ +
+ +
+
+ + +
+
+ +
+

Call To Action

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ Call To Action +
+ +
+
+ + +
+
+ +
+

Our Services

+
+ +
+
+
+
+

Lorem Ipsum

+

Voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident

+
+
+
+
+
+

Dolor Sitema

+

Minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat tarad limino ata

+
+
+ +
+
+
+

Sed ut perspiciatis

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur

+
+
+
+
+
+

Magni Dolores

+

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

+
+
+ +
+
+
+

Nemo Enim

+

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque

+
+
+
+
+
+

Eiusmod Tempor

+

Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi

+
+
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Kinglet/KINGLET (2).pdf b/Kinglet/KINGLET (2).pdf new file mode 100644 index 00000000..e22eed42 Binary files /dev/null and b/Kinglet/KINGLET (2).pdf differ diff --git a/Kinglet/KINGLET.pptx b/Kinglet/KINGLET.pptx new file mode 100644 index 00000000..95a93fc7 Binary files /dev/null and b/Kinglet/KINGLET.pptx differ diff --git a/Kinglet/proj dir/apps nutritrack.py b/Kinglet/proj dir/apps nutritrack.py new file mode 100644 index 00000000..8b05bf52 --- /dev/null +++ b/Kinglet/proj dir/apps nutritrack.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class NutritrackConfig(AppConfig): + name = 'nutritrack' diff --git a/Kinglet/proj dir/apps(calc).py b/Kinglet/proj dir/apps(calc).py new file mode 100644 index 00000000..628d6cac --- /dev/null +++ b/Kinglet/proj dir/apps(calc).py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class CalcConfig(AppConfig): + name = 'calc' diff --git a/Kinglet/proj dir/base temp.html b/Kinglet/proj dir/base temp.html new file mode 100644 index 00000000..f058b56c --- /dev/null +++ b/Kinglet/proj dir/base temp.html @@ -0,0 +1,15 @@ + + + + + + Nutri-Track + + + + {% block content %} + + {% endblock %} + + + diff --git a/Kinglet/proj dir/home(temp).html b/Kinglet/proj dir/home(temp).html new file mode 100644 index 00000000..6dff331a --- /dev/null +++ b/Kinglet/proj dir/home(temp).html @@ -0,0 +1,14 @@ +{% extends 'base.html'%} +{% block content %} +

HELLO {{name}}!!!

+ +
+ {% csrf_token%} + Enter Age:
+ Enter Gender:
+ Enter Weight(kg):
+ Enter Height(m):
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/Kinglet/proj dir/index(temp).html b/Kinglet/proj dir/index(temp).html new file mode 100644 index 00000000..54528efd --- /dev/null +++ b/Kinglet/proj dir/index(temp).html @@ -0,0 +1,330 @@ +{% load static %} + + + + + + + + Serenity Bootstrap Template - Index + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+

Welcome to Nutri-Track

+

Stay on top of your health with our help

+ Get Started +
+
+ +
+ + +
+
+ +
+
+
+ +
+
+ + 65 +

Happy Clients

+
+
+ +
+
+ + 85 +

Projects

+
+
+ +
+
+ + 12 +

Years of experience

+
+
+ +
+
+ + 15 +

Awards

+
+
+ +
+
+
+ +
+ +
+ + +
+ +
+

Voluptatem dignissimos provident quasi corporis voluptates sit assumenda.

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore + magna aliqua. +

+
    +
  • Ullamco laboris nisi ut aliquip ex ea commodo consequat.
  • +
  • Duis aute irure dolor in reprehenderit in voluptate velit.
  • +
  • Voluptate repellendus pariatur reprehenderit corporis sint.
  • +
  • Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate trideta storacalaperda mastiro dolore eu fugiat nulla pariatur.
  • +
+

+ Ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate + velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in + culpa qui officia deserunt mollit anim id est laborum +

+
+ +
+ +
+
+ + +
+
+ +
+

Call To Action

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ Call To Action +
+ +
+
+ + +
+
+ +
+

Our Services

+
+ +
+
+
+
+

Lorem Ipsum

+

Voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident

+
+
+
+
+
+

Dolor Sitema

+

Minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat tarad limino ata

+
+
+ +
+
+
+

Sed ut perspiciatis

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur

+
+
+
+
+
+

Magni Dolores

+

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

+
+
+ +
+
+
+

Nemo Enim

+

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque

+
+
+
+
+
+

Eiusmod Tempor

+

Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi

+
+
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Kinglet/proj dir/register(temp).html b/Kinglet/proj dir/register(temp).html new file mode 100644 index 00000000..e69de29b diff --git a/Kinglet/proj dir/result(temp).html b/Kinglet/proj dir/result(temp).html new file mode 100644 index 00000000..e67e8274 --- /dev/null +++ b/Kinglet/proj dir/result(temp).html @@ -0,0 +1,5 @@ +{% extends 'base.html'%} +{% block content %} + +Result:{{bmi}} +{% endblock %} \ No newline at end of file diff --git a/Kinglet/proj dir/settings(HP).py b/Kinglet/proj dir/settings(HP).py new file mode 100644 index 00000000..23329f9b --- /dev/null +++ b/Kinglet/proj dir/settings(HP).py @@ -0,0 +1,127 @@ +""" +Django settings for HP project. + +Generated by 'django-admin startproject' using Django 3.1.4. + +For more information on this file, see +https://docs.djangoproject.com/en/3.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/3.1/ref/settings/ +""" + +from pathlib import Path +import os + + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'f$yl%u_r+%^s^ulq#vg8g*h_a%gmy62fp%o#r!!#@u19av)ruc' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'HP.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [os.path.join(BASE_DIR,'temp')], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'HP.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/3.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/3.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/3.1/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_L10N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/3.1/howto/static-files/ + +STATIC_URL = '/static/' +STATICFILES_DIRS=[ + os.path.join(BASE_DIR,'HP/static') +] +STATIC_ROOT= os.path.join(BASE_DIR,'assets') \ No newline at end of file diff --git a/Kinglet/proj dir/urls(HP).py b/Kinglet/proj dir/urls(HP).py new file mode 100644 index 00000000..c0dc5bd8 --- /dev/null +++ b/Kinglet/proj dir/urls(HP).py @@ -0,0 +1,24 @@ +"""HP URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.1/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path,include + +urlpatterns = [ + path('',include('calc.urls')), + path('admin/', admin.site.urls), + path('accounts/',include('accounts.urls')) + +] diff --git a/Kinglet/proj dir/urls(accounts).py b/Kinglet/proj dir/urls(accounts).py new file mode 100644 index 00000000..28f18418 --- /dev/null +++ b/Kinglet/proj dir/urls(accounts).py @@ -0,0 +1,3 @@ +from django.urls import path +from . import views +urlpatterns=[path("register",views.register,name="registration")] \ No newline at end of file diff --git a/Kinglet/proj dir/urls(calc).py b/Kinglet/proj dir/urls(calc).py new file mode 100644 index 00000000..a0bcb407 --- /dev/null +++ b/Kinglet/proj dir/urls(calc).py @@ -0,0 +1,6 @@ +from django.urls import path +from . import views +urlpatterns= [ + path('',views.home,name='home'), + path('add',views.add,name='add') +] \ No newline at end of file diff --git a/Kinglet/proj dir/urls(nutritrack).py b/Kinglet/proj dir/urls(nutritrack).py new file mode 100644 index 00000000..52fc2f89 --- /dev/null +++ b/Kinglet/proj dir/urls(nutritrack).py @@ -0,0 +1,3 @@ +from django.urls import path +from . import views +urlpatterns=[path("",views.index,name="index")] \ No newline at end of file diff --git a/Kinglet/proj dir/views (calc).py b/Kinglet/proj dir/views (calc).py new file mode 100644 index 00000000..27786985 --- /dev/null +++ b/Kinglet/proj dir/views (calc).py @@ -0,0 +1,11 @@ +from django.shortcuts import render +from django.http import HttpResponse +# Create your views here. +def home(request): + return render(request,'home.html',{'name':'Nayantara'}) + +def add(request): + val1 = float(request.POST["num2"]) + val2 = float(request.POST["num3"]) + res = val1/(val2**2) + return render(request,"result.html",{'bmi':res}) \ No newline at end of file diff --git a/Kinglet/proj dir/views(accounts).py b/Kinglet/proj dir/views(accounts).py new file mode 100644 index 00000000..1e93e5d6 --- /dev/null +++ b/Kinglet/proj dir/views(accounts).py @@ -0,0 +1,4 @@ +from django.shortcuts import render + +def register(request): + return render(request,'register.html') diff --git a/Kinglet/proj dir/views(nutritrack).py b/Kinglet/proj dir/views(nutritrack).py new file mode 100644 index 00000000..163ac088 --- /dev/null +++ b/Kinglet/proj dir/views(nutritrack).py @@ -0,0 +1,4 @@ +from django.shortcuts import render + +def index(request): + return render(request,'index.html') \ No newline at end of file