From 4bb40e44cf2674b8b7c442d8dbbdd068479ba159 Mon Sep 17 00:00:00 2001
From: Matir11 <51160306+Matir11@users.noreply.github.com>
Date: Tue, 15 Mar 2022 23:37:20 -0400
Subject: [PATCH 1/8] Lab 5
---
Code/eric/html/labs/lab_5/index.html | 87 ++++++++++++++++++++++++++++
1 file changed, 87 insertions(+)
create mode 100644 Code/eric/html/labs/lab_5/index.html
diff --git a/Code/eric/html/labs/lab_5/index.html b/Code/eric/html/labs/lab_5/index.html
new file mode 100644
index 00000000..f9cee241
--- /dev/null
+++ b/Code/eric/html/labs/lab_5/index.html
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+ Super Caliente Burritos
+
+
+
+
+
+
+
+
\ No newline at end of file
From ac8c00212ce1540b876dcac1dab45110b8b08727 Mon Sep 17 00:00:00 2001
From: Matir11 <51160306+Matir11@users.noreply.github.com>
Date: Wed, 16 Mar 2022 22:06:07 -0400
Subject: [PATCH 2/8] updated is css
---
Code/eric/html/labs/lab_5/index.html | 55 ++++++++++++++++++----------
1 file changed, 36 insertions(+), 19 deletions(-)
diff --git a/Code/eric/html/labs/lab_5/index.html b/Code/eric/html/labs/lab_5/index.html
index f9cee241..b06fdb1c 100644
--- a/Code/eric/html/labs/lab_5/index.html
+++ b/Code/eric/html/labs/lab_5/index.html
@@ -5,22 +5,33 @@
Super Caliente Burritos
+
-
-
From f7bf3d06f28fc34ddbbbb7d5a1ba046fbb33f5fb Mon Sep 17 00:00:00 2001
From: Matir11 <51160306+Matir11@users.noreply.github.com>
Date: Sat, 19 Mar 2022 00:11:31 -0400
Subject: [PATCH 3/8] Lab 6
---
Code/eric/html/labs/lab_6/app.py | 51 +++++++++++++++++++
.../eric/html/labs/lab_6/templates/index.html | 13 +++++
.../html/labs/lab_6/templates/results.html | 0
3 files changed, 64 insertions(+)
create mode 100644 Code/eric/html/labs/lab_6/app.py
create mode 100644 Code/eric/html/labs/lab_6/templates/index.html
create mode 100644 Code/eric/html/labs/lab_6/templates/results.html
diff --git a/Code/eric/html/labs/lab_6/app.py b/Code/eric/html/labs/lab_6/app.py
new file mode 100644
index 00000000..7afbdc5e
--- /dev/null
+++ b/Code/eric/html/labs/lab_6/app.py
@@ -0,0 +1,51 @@
+from crypt import methods
+from unittest import result
+from flask import Flask, render_template, request
+
+app = Flask(__name__)
+
+# route items to the index
+@app.route('/')
+def index():
+ return render_template('index.html')
+
+#route the actual application
+@app.route('/converter', methods = ['POST'])
+def convertor():
+ result = request.form
+
+ user = result['measure_in']
+
+ conversion_in = {
+ 'ft' : .3048,
+ 'mi' : 1609.34,
+ 'm' : 1,
+ 'km' : 1000
+}
+
+conversion_out = {
+ 'ft' : 1/.3048,
+ 'mi' : 1/1609.34,
+ 'm' : 1,
+ 'km' : 1/1000
+}
+
+#build input
+distance=input("what is the distance? ")
+distance=int(distance)
+
+unit_in=input("what are the input units? choose ft, mi, km: ")
+unit_out=input("what are the output units? choose ft, mi, km: ")
+
+#enter sausage maker
+if unit_in in conversion_in and unit_out in conversion_out:
+ converted_to_meters = conversion_in[unit_in]
+ distance_in_meters = converted_to_meters * distance
+ meters_out = conversion_out[unit_out]
+ final_conversion = meters_out * distance_in_meters
+ print(f"{distance}{unit_in} is {round(final_conversion,4)}{unit_out}")
+
+else:
+ print("unit not recognized")
+
+ return render_template('results.html', user=user)
\ No newline at end of file
diff --git a/Code/eric/html/labs/lab_6/templates/index.html b/Code/eric/html/labs/lab_6/templates/index.html
new file mode 100644
index 00000000..ee705387
--- /dev/null
+++ b/Code/eric/html/labs/lab_6/templates/index.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+ Unit Converter
+
+
+ Unit Converter
+
+
+
\ No newline at end of file
diff --git a/Code/eric/html/labs/lab_6/templates/results.html b/Code/eric/html/labs/lab_6/templates/results.html
new file mode 100644
index 00000000..e69de29b
From 3b9d1b4525330442ec11bec54a134e2d7a3cf8a8 Mon Sep 17 00:00:00 2001
From: Matir11
Date: Tue, 5 Apr 2022 20:10:07 -0700
Subject: [PATCH 4/8] First Django Lab
---
.../lab1redo_proj/lab1redo_app/__init__.py | 0
.../lab1redo_proj/lab1redo_app/admin.py | 3 +
.../lab1redo_proj/lab1redo_app/apps.py | 6 +
.../lab1redo_app/migrations/__init__.py | 0
.../lab1redo_proj/lab1redo_app/models.py | 3 +
.../templates/lab1redo_app/index.html | 18 +++
.../lab1redo_proj/lab1redo_app/tests.py | 3 +
.../lab1redo_proj/lab1redo_app/urls.py | 15 +++
.../lab1redo_proj/lab1redo_app/views.py | 46 +++++++
.../lab1redo_proj/lab1redo_proj/__init__.py | 0
.../lab1redo_proj/lab1redo_proj/asgi.py | 16 +++
.../lab1redo_proj/lab1redo_proj/settings.py | 126 ++++++++++++++++++
.../lab1redo_proj/lab1redo_proj/urls.py | 21 +++
.../lab1redo_proj/lab1redo_proj/wsgi.py | 16 +++
.../django_projects/lab1redo_proj/manage.py | 22 +++
15 files changed, 295 insertions(+)
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/__init__.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/admin.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/apps.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/migrations/__init__.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/models.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/templates/lab1redo_app/index.html
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/tests.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/urls.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_app/views.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_proj/__init__.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_proj/asgi.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_proj/settings.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_proj/urls.py
create mode 100644 Code/eric/django_projects/lab1redo_proj/lab1redo_proj/wsgi.py
create mode 100755 Code/eric/django_projects/lab1redo_proj/manage.py
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/__init__.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/admin.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/admin.py
new file mode 100644
index 00000000..8c38f3f3
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/apps.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/apps.py
new file mode 100644
index 00000000..ac422649
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class Lab1RedoAppConfig(AppConfig):
+ default_auto_field = 'django.db.models.BigAutoField'
+ name = 'lab1redo_app'
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/migrations/__init__.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/migrations/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/models.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/models.py
new file mode 100644
index 00000000..71a83623
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/models.py
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/templates/lab1redo_app/index.html b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/templates/lab1redo_app/index.html
new file mode 100644
index 00000000..a4bde0e6
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/templates/lab1redo_app/index.html
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+ Rot 13
+
+
+
+
+
+{{value_sting
+
+
\ No newline at end of file
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/tests.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/tests.py
new file mode 100644
index 00000000..7ce503c2
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/tests.py
@@ -0,0 +1,3 @@
+from django.test import TestCase
+
+# Create your tests here.
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/urls.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/urls.py
new file mode 100644
index 00000000..28f6100d
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/urls.py
@@ -0,0 +1,15 @@
+from django.urls import path, include
+from . import views
+
+app_name = 'rot'
+
+urlpatterns = [
+ # 127.0.0.1:8000
+ path('', views.index, name='index'),
+
+
+ path('/rot/', views.rot, name='rot')
+
+
+
+]
\ No newline at end of file
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_app/views.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/views.py
new file mode 100644
index 00000000..928f2758
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_app/views.py
@@ -0,0 +1,46 @@
+from django.shortcuts import render
+
+# Create your views here.
+def index(request):
+ return render(request, 'lab1redo_app/index.html')
+
+def rot(request):
+ letter_values = {
+ 'a' : 'n',
+ 'b' : 'o',
+ 'c' : 'p',
+ 'd' : 'q',
+ 'e' : 'r',
+ 'f' : 's',
+ 'g' : 't',
+ 'h' : 'u',
+ 'i' : 'v',
+ 'j' : 'w',
+ 'k' : 'x',
+ 'l' : 'y',
+ 'm' : 'z',
+ 'n' : 'a',
+ 'o' : 'b',
+ 'p' : 'c',
+ 'q' : 'd',
+ 'r' : 'e',
+ 's' : 'f',
+ 't' : 'g',
+ 'u' : 'h',
+ 'v' : 'i',
+ 'w' : 'j',
+ 'x' : 'k',
+ 'y' : 'l',
+ 'z' : 'm'
+ }
+
+ user_string = request.GET.get('plain_text', '').lower()
+ value_string = " "
+ for letter in user_string:
+ letters = letter in letter_values.get()
+ if letters == True:
+ value_string += letter_values[letter]
+
+ return render(request, 'index.html', {'Converted Text':value_string})
+
+
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/__init__.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/asgi.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/asgi.py
new file mode 100644
index 00000000..b7e1280a
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/asgi.py
@@ -0,0 +1,16 @@
+"""
+ASGI config for lab1redo_proj project.
+
+It exposes the ASGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/
+"""
+
+import os
+
+from django.core.asgi import get_asgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lab1redo_proj.settings')
+
+application = get_asgi_application()
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/settings.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/settings.py
new file mode 100644
index 00000000..c348ef71
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/settings.py
@@ -0,0 +1,126 @@
+"""
+Django settings for lab1redo_proj project.
+
+Generated by 'django-admin startproject' using Django 4.0.3.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.0/topics/settings/
+
+For the full list of settings and their values, see
+https://docs.djangoproject.com/en/4.0/ref/settings/
+"""
+
+from pathlib import Path
+
+# 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/4.0/howto/deployment/checklist/
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY = 'django-insecure-pff+i!=*&u@_s()&o-%&^t3ap)&2-ex_#_s3w&dyu9ws@ev$w9'
+
+# 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',
+
+ # project app
+ 'lab1redo.app',
+]
+
+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 = 'lab1redo_proj.urls'
+
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ '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 = 'lab1redo_proj.wsgi.application'
+
+
+# Database
+# https://docs.djangoproject.com/en/4.0/ref/settings/#databases
+
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': BASE_DIR / 'db.sqlite3',
+ }
+}
+
+
+# Password validation
+# https://docs.djangoproject.com/en/4.0/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/4.0/topics/i18n/
+
+LANGUAGE_CODE = 'en-us'
+
+TIME_ZONE = 'America/New_York'
+
+USE_I18N = True
+
+USE_TZ = True
+
+
+# Static files (CSS, JavaScript, Images)
+# https://docs.djangoproject.com/en/4.0/howto/static-files/
+
+STATIC_URL = 'static/'
+
+# Default primary key field type
+# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
+
+DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/urls.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/urls.py
new file mode 100644
index 00000000..3d63057d
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/urls.py
@@ -0,0 +1,21 @@
+"""lab1redo_proj URL Configuration
+
+The `urlpatterns` list routes URLs to views. For more information please see:
+ https://docs.djangoproject.com/en/4.0/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
+
+urlpatterns = [
+ path('admin/', admin.site.urls),
+]
diff --git a/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/wsgi.py b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/wsgi.py
new file mode 100644
index 00000000..1a3af340
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/lab1redo_proj/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for lab1redo_proj project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/4.0/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lab1redo_proj.settings')
+
+application = get_wsgi_application()
diff --git a/Code/eric/django_projects/lab1redo_proj/manage.py b/Code/eric/django_projects/lab1redo_proj/manage.py
new file mode 100755
index 00000000..e658b2e5
--- /dev/null
+++ b/Code/eric/django_projects/lab1redo_proj/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ """Run administrative tasks."""
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lab1redo_proj.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()
From 6d0c4b85ec64f949dd6347e65924c11d2f5d66d6 Mon Sep 17 00:00:00 2001
From: matir11
Date: Wed, 4 May 2022 23:11:46 -0400
Subject: [PATCH 5/8] django todo list
---
Code/eric/django_projects/todo/manage.py | 22 ++++
.../django_projects/todo/todo_app/__init__.py | 0
.../django_projects/todo/todo_app/admin.py | 3 +
.../django_projects/todo/todo_app/apps.py | 6 +
.../django_projects/todo/todo_app/forms.py | 8 ++
.../todo/todo_app/migrations/__init__.py | 0
.../django_projects/todo/todo_app/models.py | 14 ++
.../todo/todo_app/templates/todo/index.html | 20 +++
.../todo_app/templates/todo/saved_todos.html | 15 +++
.../django_projects/todo/todo_app/tests.py | 3 +
.../django_projects/todo/todo_app/urls.py | 7 +
.../django_projects/todo/todo_app/views.py | 30 +++++
.../todo/todo_proj/__init__.py | 0
.../django_projects/todo/todo_proj/asgi.py | 16 +++
.../todo/todo_proj/settings.py | 124 ++++++++++++++++++
.../django_projects/todo/todo_proj/urls.py | 22 ++++
.../django_projects/todo/todo_proj/wsgi.py | 16 +++
17 files changed, 306 insertions(+)
create mode 100755 Code/eric/django_projects/todo/manage.py
create mode 100644 Code/eric/django_projects/todo/todo_app/__init__.py
create mode 100644 Code/eric/django_projects/todo/todo_app/admin.py
create mode 100644 Code/eric/django_projects/todo/todo_app/apps.py
create mode 100644 Code/eric/django_projects/todo/todo_app/forms.py
create mode 100644 Code/eric/django_projects/todo/todo_app/migrations/__init__.py
create mode 100644 Code/eric/django_projects/todo/todo_app/models.py
create mode 100644 Code/eric/django_projects/todo/todo_app/templates/todo/index.html
create mode 100644 Code/eric/django_projects/todo/todo_app/templates/todo/saved_todos.html
create mode 100644 Code/eric/django_projects/todo/todo_app/tests.py
create mode 100644 Code/eric/django_projects/todo/todo_app/urls.py
create mode 100644 Code/eric/django_projects/todo/todo_app/views.py
create mode 100644 Code/eric/django_projects/todo/todo_proj/__init__.py
create mode 100644 Code/eric/django_projects/todo/todo_proj/asgi.py
create mode 100644 Code/eric/django_projects/todo/todo_proj/settings.py
create mode 100644 Code/eric/django_projects/todo/todo_proj/urls.py
create mode 100644 Code/eric/django_projects/todo/todo_proj/wsgi.py
diff --git a/Code/eric/django_projects/todo/manage.py b/Code/eric/django_projects/todo/manage.py
new file mode 100755
index 00000000..00a51e0f
--- /dev/null
+++ b/Code/eric/django_projects/todo/manage.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+"""Django's command-line utility for administrative tasks."""
+import os
+import sys
+
+
+def main():
+ """Run administrative tasks."""
+ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'todo_app.settings')
+ try:
+ from django.core.management import execute_from_command_line
+ except ImportError as exc:
+ raise ImportError(
+ "Couldn't import Django. Are you sure it's installed and "
+ "available on your PYTHONPATH environment variable? Did you "
+ "forget to activate a virtual environment?"
+ ) from exc
+ execute_from_command_line(sys.argv)
+
+
+if __name__ == '__main__':
+ main()
diff --git a/Code/eric/django_projects/todo/todo_app/__init__.py b/Code/eric/django_projects/todo/todo_app/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/Code/eric/django_projects/todo/todo_app/admin.py b/Code/eric/django_projects/todo/todo_app/admin.py
new file mode 100644
index 00000000..8c38f3f3
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/admin.py
@@ -0,0 +1,3 @@
+from django.contrib import admin
+
+# Register your models here.
diff --git a/Code/eric/django_projects/todo/todo_app/apps.py b/Code/eric/django_projects/todo/todo_app/apps.py
new file mode 100644
index 00000000..d8f1498d
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/apps.py
@@ -0,0 +1,6 @@
+from django.apps import AppConfig
+
+
+class TodoAppConfig(AppConfig):
+ default_auto_field = 'django.db.models.BigAutoField'
+ name = 'todo_app'
diff --git a/Code/eric/django_projects/todo/todo_app/forms.py b/Code/eric/django_projects/todo/todo_app/forms.py
new file mode 100644
index 00000000..91073e84
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/forms.py
@@ -0,0 +1,8 @@
+from django import forms
+from .models import ToDo
+
+
+class ToDoForm(forms.ModelForm):
+ class Meta:
+ model = ToDo
+ fields = ('text', 'priority')
\ No newline at end of file
diff --git a/Code/eric/django_projects/todo/todo_app/migrations/__init__.py b/Code/eric/django_projects/todo/todo_app/migrations/__init__.py
new file mode 100644
index 00000000..e69de29b
diff --git a/Code/eric/django_projects/todo/todo_app/models.py b/Code/eric/django_projects/todo/todo_app/models.py
new file mode 100644
index 00000000..87cc26cc
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/models.py
@@ -0,0 +1,14 @@
+from django.db import models
+from django.contrib.auth.models import User
+# Create your models here.
+PRIO_CHOICES = (
+ ('high', 'High'),
+ ('medium', 'Medium'),
+ ('low', 'Low'),
+)
+class ToDo(models.Model):
+ text = models.CharField(max_length=120, )
+ priority = models.CharField(max_length=6, choices=PRIO_CHOICES, default='medium')
+
+
+ created_date = models.DateTimeField(auto_now=True)
diff --git a/Code/eric/django_projects/todo/todo_app/templates/todo/index.html b/Code/eric/django_projects/todo/todo_app/templates/todo/index.html
new file mode 100644
index 00000000..50f7dd7a
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/templates/todo/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+ To Do List
+
+
+ To Do List
+ Add To Do
+ {% for todo in todos %}
+
+
+ {{todo.text}} - {{todo.priority}}
+
+
+ {% endfor %}
+
+
\ No newline at end of file
diff --git a/Code/eric/django_projects/todo/todo_app/templates/todo/saved_todos.html b/Code/eric/django_projects/todo/todo_app/templates/todo/saved_todos.html
new file mode 100644
index 00000000..2112f679
--- /dev/null
+++ b/Code/eric/django_projects/todo/todo_app/templates/todo/saved_todos.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+ Saved To Dos
+
+
+