From e9dbadb5e36c63337fc7be332573677535e7ec40 Mon Sep 17 00:00:00 2001 From: "Christopher T. Johnson" Date: Tue, 7 Nov 2023 16:48:58 -0500 Subject: [PATCH] Initial Django Import --- esl/books/__init__.py | 0 esl/books/admin.py | 3 + esl/books/apps.py | 6 + esl/books/migrations/__init__.py | 0 esl/books/models.py | 3 + esl/books/tests.py | 3 + esl/books/views.py | 3 + esl/esl/__init__.py | 0 esl/esl/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 151 bytes esl/esl/__pycache__/settings.cpython-311.pyc | Bin 0 -> 2567 bytes esl/esl/asgi.py | 16 +++ esl/esl/settings.py | 123 +++++++++++++++++++ esl/esl/urls.py | 22 ++++ esl/esl/wsgi.py | 16 +++ esl/manage.py | 22 ++++ esl/people/__init__.py | 0 esl/people/admin.py | 3 + esl/people/apps.py | 6 + esl/people/migrations/__init__.py | 0 esl/people/models.py | 3 + esl/people/tests.py | 3 + esl/people/views.py | 3 + esl/words/__init__.py | 0 esl/words/admin.py | 3 + esl/words/apps.py | 6 + esl/words/migrations/__init__.py | 0 esl/words/models.py | 3 + esl/words/tests.py | 3 + esl/words/views.py | 3 + requirements.txt | 33 +++++ 30 files changed, 286 insertions(+) create mode 100644 esl/books/__init__.py create mode 100644 esl/books/admin.py create mode 100644 esl/books/apps.py create mode 100644 esl/books/migrations/__init__.py create mode 100644 esl/books/models.py create mode 100644 esl/books/tests.py create mode 100644 esl/books/views.py create mode 100644 esl/esl/__init__.py create mode 100644 esl/esl/__pycache__/__init__.cpython-311.pyc create mode 100644 esl/esl/__pycache__/settings.cpython-311.pyc create mode 100644 esl/esl/asgi.py create mode 100644 esl/esl/settings.py create mode 100644 esl/esl/urls.py create mode 100644 esl/esl/wsgi.py create mode 100755 esl/manage.py create mode 100644 esl/people/__init__.py create mode 100644 esl/people/admin.py create mode 100644 esl/people/apps.py create mode 100644 esl/people/migrations/__init__.py create mode 100644 esl/people/models.py create mode 100644 esl/people/tests.py create mode 100644 esl/people/views.py create mode 100644 esl/words/__init__.py create mode 100644 esl/words/admin.py create mode 100644 esl/words/apps.py create mode 100644 esl/words/migrations/__init__.py create mode 100644 esl/words/models.py create mode 100644 esl/words/tests.py create mode 100644 esl/words/views.py create mode 100644 requirements.txt diff --git a/esl/books/__init__.py b/esl/books/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/books/admin.py b/esl/books/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/esl/books/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/esl/books/apps.py b/esl/books/apps.py new file mode 100644 index 0000000..a53388c --- /dev/null +++ b/esl/books/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BooksConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'books' diff --git a/esl/books/migrations/__init__.py b/esl/books/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/books/models.py b/esl/books/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/esl/books/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/esl/books/tests.py b/esl/books/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/esl/books/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/esl/books/views.py b/esl/books/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/esl/books/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/esl/esl/__init__.py b/esl/esl/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/esl/__pycache__/__init__.cpython-311.pyc b/esl/esl/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ed38fc2a1cce2787234576020dd1405b1adff8f5 GIT binary patch literal 151 zcmZ3^%ge<81izxZQbF`%5CH>>P{wCAAY(d13PUi1CZpdA)WvL literal 0 HcmV?d00001 diff --git a/esl/esl/__pycache__/settings.cpython-311.pyc b/esl/esl/__pycache__/settings.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a966181b5adbe5b498e7f6580569bb1745cd30dd GIT binary patch literal 2567 zcmb7GOK;mo5MJv2wyY?zZawu|WQRL4!MSvPS8R(_G5y&m44)w4FIY3=vIozGcH?y-dEB%&C#t=O3 zgfGeS1VVp#i_sGrPTu|vlb;Yq0>TvbDU|9Hd=&B_;v@cFDTH3ZJ9vHxjArBCUt#g; zgs~GGO;2Y+2>XRF4hWGJ5~3}HgD)u|2Hy~T<2WoNFi3C!d$QO|N~Uo9MW96qNt_T; zIEhmvgs1E{LOA`xCsV={p2iu_n#LFUG~1^aWvUer()f}vjc0@m_`3ja7S9S7@nzu> zp5syOigXLM6D#gWT1%%*Vp+1*GU;vIpoyu_9YfzCO^b=e)`&(7$s(9;9MCs$Uw=Wu zs;tqbB^lOG^CsOj0f8O@E-`nR`(V8ac&cs?TGjwsl`L7;Xc$&o24}KDJ_g?;*0!vU z`B^@X^`^-Te2gM!>S~^7c>v5?dPi=W`BAX>0ld{F^mbQKXhk+HTHik1jHF?3L}Y`0 zCMjKF{vTfk*&cKBk9U?i$_Z>pR@+_~W!;a>A@+-Wt7O&q> zt!wk<=gYTq^U}h>Qls4<*T2=&M|+*SJIl+r4|Z$0kewaCFil;v47tJdlWJd>v$Sh3rcPVfy=& ztpkSlHVl*X6Pdj<2{v@kjM?)8-k4SHtP?nCRo9q8|MMTJrm@WwfIOAS{+R0hiC82^ z-gq1=tRZi5vtNi~hLf8ZrE1)GeUQE}t54sv2}N%1?nupDXa?r%RYOuqwc}O2Ic67u z7Gt`GV%qs3f<@Gh0$s*5z?5is)CEkj-*B~|*mN@eqyNqlp+A}skZzc{fPHHc=ByTj zNu%4c=g*;OkUi)Y%f3C-JthScF?c#(j58-6RHUd2QOY2rsL$B6)4_ zbfBRd_QUfct;?FMcGWV`T2}ki{)_Y4587j67~?6xqw@k(x+*c`=2?Uw(H6R<dG_XggS7SXqFRMVR_CwWhcgSg-xy|KHX6^bueW-DuTc8wDY)glLgrFBjes!%eK zIs{z0vs`gP-mE4-!&En^~I=wi##%msLO|Fc6_)Y zlt_QS^kd|QhtD7W8Nd2R{OarYwKv|Fe-ppci?}J2+N63hP>d#f!Q*tMmvm#{jL$_Q z(o4CSND3Gu0@_)Wp6eyt2+DHQQ95&!ojp#_E(%^tjS+u18*`(HV8}%t@u!l$Ueu*g zcK#5h!ErEklwpq2vp+w0oxbS?{b^A2h(Fj@oI}y6!?fV~ePA5vFE+*(UyUy|2aAiz t4}7qH_Xe7t?In*B)4k|%e5w~YhRucC1WL_7@G*4h-XY2ihVc=k^Iyx?Pyzq| literal 0 HcmV?d00001 diff --git a/esl/esl/asgi.py b/esl/esl/asgi.py new file mode 100644 index 0000000..a9ff9c1 --- /dev/null +++ b/esl/esl/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for esl 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.2/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'esl.settings') + +application = get_asgi_application() diff --git a/esl/esl/settings.py b/esl/esl/settings.py new file mode 100644 index 0000000..8cab91f --- /dev/null +++ b/esl/esl/settings.py @@ -0,0 +1,123 @@ +""" +Django settings for esl project. + +Generated by 'django-admin startproject' using Django 4.2.7. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.2/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.2/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-5c2b(w7qk*3%iv03%&mt#*s=8+)*a-y4bhbe%^nm@qp2j88+yk' + +# 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 = 'esl.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 = 'esl.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.2/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.2/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.2/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/esl/esl/urls.py b/esl/esl/urls.py new file mode 100644 index 0000000..f14c5f4 --- /dev/null +++ b/esl/esl/urls.py @@ -0,0 +1,22 @@ +""" +URL configuration for esl project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.2/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/esl/esl/wsgi.py b/esl/esl/wsgi.py new file mode 100644 index 0000000..6dd2bb7 --- /dev/null +++ b/esl/esl/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for esl 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.2/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'esl.settings') + +application = get_wsgi_application() diff --git a/esl/manage.py b/esl/manage.py new file mode 100755 index 0000000..1b8672d --- /dev/null +++ b/esl/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', 'esl.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/esl/people/__init__.py b/esl/people/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/people/admin.py b/esl/people/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/esl/people/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/esl/people/apps.py b/esl/people/apps.py new file mode 100644 index 0000000..c2ddd3b --- /dev/null +++ b/esl/people/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class PeopleConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'people' diff --git a/esl/people/migrations/__init__.py b/esl/people/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/people/models.py b/esl/people/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/esl/people/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/esl/people/tests.py b/esl/people/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/esl/people/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/esl/people/views.py b/esl/people/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/esl/people/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/esl/words/__init__.py b/esl/words/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/words/admin.py b/esl/words/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/esl/words/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/esl/words/apps.py b/esl/words/apps.py new file mode 100644 index 0000000..7cff312 --- /dev/null +++ b/esl/words/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class WordsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'words' diff --git a/esl/words/migrations/__init__.py b/esl/words/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/esl/words/models.py b/esl/words/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/esl/words/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/esl/words/tests.py b/esl/words/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/esl/words/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/esl/words/views.py b/esl/words/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/esl/words/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..86509ec --- /dev/null +++ b/requirements.txt @@ -0,0 +1,33 @@ +asgiref==3.7.2 +asttokens==2.4.1 +beautifulsoup4==4.12.2 +bs4==0.0.1 +certifi==2023.7.22 +charset-normalizer==3.3.2 +click==8.1.7 +decorator==5.1.1 +Django==4.2.7 +executing==2.0.1 +futures==3.0.5 +goslate==1.5.4 +idna==3.4 +ipython==8.17.2 +jedi==0.19.1 +matplotlib-inline==0.1.6 +parso==0.8.3 +pexpect==4.8.0 +pickleshare==0.7.5 +prompt-toolkit==3.0.39 +ptyprocess==0.7.0 +pure-eval==0.2.2 +PyDictionary==2.0.1 +Pygments==2.16.1 +requests==2.31.0 +six==1.16.0 +soupsieve==2.5 +sqlparse==0.4.4 +stack-data==0.6.3 +traitlets==5.13.0 +unicorn==2.0.1.post1 +urllib3==2.0.7 +wcwidth==0.2.9