From 1b9df5c6c900ada2d98dcfa7c92dc3f6a5bc560e Mon Sep 17 00:00:00 2001 From: Sophie Morris <sm02810@surrey.ac.uk> Date: Tue, 5 Mar 2024 12:11:58 +0000 Subject: [PATCH] playing around --- Profile/Profile/__init__.py | 1 - .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 149 bytes .../__pycache__/settings.cpython-310.pyc | Bin 0 -> 2275 bytes .../Profile/__pycache__/urls.cpython-310.pyc | Bin 761 -> 926 bytes .../Profile/__pycache__/wsgi.cpython-310.pyc | Bin 0 -> 552 bytes .../Test1/__init__.py => Profile/db.sqlite3 | 0 meganTest/Test1/Test1/asgi.py | 16 --- meganTest/Test1/Test1/settings.py | 123 ------------------ meganTest/Test1/Test1/wsgi.py | 16 --- meganTest/Test1/manage.py | 22 ---- 10 files changed, 178 deletions(-) create mode 100644 Profile/Profile/__pycache__/__init__.cpython-310.pyc create mode 100644 Profile/Profile/__pycache__/settings.cpython-310.pyc rename meganTest/Test1/Test1/urls.py => Profile/Profile/__pycache__/urls.cpython-310.pyc (58%) create mode 100644 Profile/Profile/__pycache__/wsgi.cpython-310.pyc rename meganTest/Test1/Test1/__init__.py => Profile/db.sqlite3 (100%) delete mode 100644 meganTest/Test1/Test1/asgi.py delete mode 100644 meganTest/Test1/Test1/settings.py delete mode 100644 meganTest/Test1/Test1/wsgi.py delete mode 100644 meganTest/Test1/manage.py diff --git a/Profile/Profile/__init__.py b/Profile/Profile/__init__.py index 022d2a7..e69de29 100644 --- a/Profile/Profile/__init__.py +++ b/Profile/Profile/__init__.py @@ -1 +0,0 @@ -Boo diff --git a/Profile/Profile/__pycache__/__init__.cpython-310.pyc b/Profile/Profile/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..19c2272552a64a3afa26ce1c4bfc951acadaaf8b GIT binary patch literal 149 zcmd1j<>g`kf_CobsUZ3>h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6wl*(xTqIJKxa zrZ~SKBQqvBKiAm6&_uT+H8IyXCZH%kEi)$-PRGY*=4F<|$LkeT-r}&y%}*)KNwou+ KSj+?@SQr577a^Sh literal 0 HcmV?d00001 diff --git a/Profile/Profile/__pycache__/settings.cpython-310.pyc b/Profile/Profile/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf21e420abe2a691ab5f0143c5c57a56f1f7ee24 GIT binary patch literal 2275 zcmb7FOK;mo5GHBrVZ}-u+j%rW0S0KBD2b>zj+-DT($FGptI-Q4Ww(S;g4V92b@(!O z700~xZ{*PCP@w;(CtiCf`UiR_il#$KvIRLnT}oUocV@ns{dQ*P7mEcBu3zVW$IC^I z`z?8yzOwN05^nl442Uy1#3RAsUBMK14hwkh2mVL#C+;wFm@%_x&dedv%=bBSzR#h| zd)_R-GYij4C}%DpkRTByvch|w@aWPzvCo@Dv|wIFMRXZw(UsdAT6`xE-n@dYq9xF| zik8!HB^|F3zAu`K=(>3o-7uHH+cMlM=%#rMePUimw{)&_+kVJ%TtPjwy}mC|%oy?d zRO<Pm)DHa~aj+DG{vqx%xlq``9u94Wk#uk(-9@QQ*+wq$B+BfNjWzE|LkcL;81#v} zDnAD6O~7>h5KF`Zc-Lmc_aykU0Re~L=^^;Xg#lv$eO{>`zf0wjk4Xew->qP;0)Q3f z2c%0YlYlEDcs9UNZ|FFZLnxE{-r0t14}l|0Lg|g|3^DybzCzraa`XorE?44Xv2C+K zv@vFZcocVsAud0CyzZ2bULUbu_p`TaCvVI5ap};0u>Qr<!5#OJXMcZuwEB4U-g;@B zzUh4)tRvefWuui5jNJ7-7Lo%wB{f=}T^)kQ+cS%a3HBH}2{4Ur%m^u_6lgv#a6w@A z!Q$4e1%rd>CdWZbxu`srx&$EyAKM|8(|r<lBJ0V9VbVC2MNekI#_r`QdwsMvWmP)w z1WwxZJ-M1b{zH|9J-G_QF2ToBs!wNPv4OnlI23pX-bgo1#3{qsO-!hoHg1gQo3i@y zBb#tY_w}LOeGSDRf4dplE^Y-$*3&7wg>jk5!_c8oWsJhG8#qvD@&TA*4^1jTR@0(0 z#$p;TrN{r4Sx_Tg2+9v>NsR8z!kpKV5k469qx%=o4Dk_E42vF&bx)HtVe})&3DeQq zjPfaqA2FE7N@ASbP^z!ArW%WCZAXvuO1o{Pvs|lf)LKnFx;Y{2nD&Wm2LZ609$}nA zxMvR?cAC@Z;EX?d<Pe6}q5>?A=OrP|YR#=$Q;Wr>($K=By+_+Kfv0&B*pwdoA+n%* z5R|%;I~0csOUiY~uufd!*hx9;jx_u*dT~*t2JwhHbnDpbv%#7D*B7-Pl}URX;~Buq zivl!<E)GfeJVFM0<spsdIz~0hL63)WsYIWSVS!24N7$kA2I)gN`I`hgs9CxZ=PV1_ zw`Ik-0Ggyj4nhH_jq{e3G?rvN#MF1*;5ZvVPw|+U-%xZdIqA5dYt<diuwH53#TixG z=xoJBrCx9CX{xo|(hWVnTx;qEEWrY#haMLiHC3%^d&-U$FYL5hhSk}rS6j`^c;3(& z?Yd%Udc3%&Z`Bh0dabG?nH0~filHQK_4uaJF}AI?qU(FD9o5=Z>NOCyAOVYYrMcBn zwlu5SQZ)dqH8jg?LCWMi5O8hvSu@TiGsA?)4M46Y-s2@z+f+Jr!vf@%wOP~Z>MvY) z2Utjlzn)c}?<WaF_o*KY$UZc@wMVN@$_(4?+Wt7jPoI;|oE)6Q`LBTVp@Uz*cblW% zz#wu93yX7NPMi~kd?r6H76eh?1wJnbAH=`K58|Sb6ZkAI{sZ$Otcg?ipW?Cz>hR0v GGyei51PoFD literal 0 HcmV?d00001 diff --git a/meganTest/Test1/Test1/urls.py b/Profile/Profile/__pycache__/urls.cpython-310.pyc similarity index 58% rename from meganTest/Test1/Test1/urls.py rename to Profile/Profile/__pycache__/urls.cpython-310.pyc index a073c9ea8420de4e98440a90df8e8239cbc73587..879d1f324cdfa6df1eae2b1ab313cd7adeca8a8b 100644 GIT binary patch delta 346 zcmYjN!AiqG5S`s@n%cDb3%%xGZD~#-BJ?IAqVy61A$GUvhGaMFCI`Lr;1~1<1dks5 z6t8>m;z9fbz38SCabVuOc>`~T`Enn<wHyq3VB^*QVAuh8Z=3&NH8``W#}+6=KoP|S zDshBS%bmh0NkkAZLJ7mUn|B^?h9Zx;HxP8v3Ikjzx#R^K&aW?qGbxrlYgAfuDSDfr zal+B$<>?KrKkWhtka1I5a$yOn(t35@*|tZQLDzUmLggY!qJ5gDB9o(q6t&{F%I*N; z@5DwGTD4~zqIt~>X$9k3w0<>HLO+Arv-2%{hqL2&u9-U5v6j_}#|v3b$CL1|W@$N% hcenr5)@)SWneIs`X;ZLMWSw;TLjwJSKI%K&pI@4;UmySg delta 179 zcmbQo{*zThNlA$-G{{FGIX^EgGrhDZu_QA;Pa!S8NFgM(xWrJQpeR2pHMvA@VqF=t zsh+{c@Anw1Kzh=O@^ckZvJ&&s^YwswONug+6f$!Q@{39o5>s+B^H3C&7UdMfWD62Y wGPt;aB0xq-YEfRXf~`U{mjV!gWHi*ly7kp{AjaqwXO^Vuf%I$YaK&-~02E0*jsO4v diff --git a/Profile/Profile/__pycache__/wsgi.cpython-310.pyc b/Profile/Profile/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bfd45dad4feb7e809f5a91882d5fb952dd0ecc72 GIT binary patch literal 552 zcmYjP!EO^V5cO`-rd=rN0de*<65VapoGOHhXo-R#MM^8ADALBPCmTmz&&qaF+AANy z6^{H55|XbR5Wm2Q*`%P1<Qa{}^WGcVxVM)uvhTaU;B&;-&nDTlHYKOD+#xy1#!N;s z*3mek*wS&;8n+?_(W3ojOSa|K*O;=_CpO-e@rZS|?|vljNBsdW(9BfHXK495i!-Hx z*A^F0_%uldp2No)9XRgiz}F2zYw>}O3C9JmP+n^|(69u}m%^%5$%qOhpH4+xYgGuZ z&`hU<_lj65w7``i!fI9EXb4<6-f%zV4j`F(U%QhmlUTS^E`%xZpQZw<3{2KbkFq)5 zc+4c!8gDBwKD%+H%97u79c<W*!s8Nr-t6TYGQyLy*Dr?si+pr`c{v#NNBP@}v#U4f zcl-C#rw+VVrgYs-=;S#`$ny}R3;Sy!X+iqa2G+(z6gps*%AyGgHA<L?Ywg2>4aRTG zHV?USe|j%ZCRYxun>eiJYC_{2A0G7%Jc#OeaxdY3Y*^CzHtalGU-NVN2h25SZML)f JFn$y#@n83Ht5W~~ literal 0 HcmV?d00001 diff --git a/meganTest/Test1/Test1/__init__.py b/Profile/db.sqlite3 similarity index 100% rename from meganTest/Test1/Test1/__init__.py rename to Profile/db.sqlite3 diff --git a/meganTest/Test1/Test1/asgi.py b/meganTest/Test1/Test1/asgi.py deleted file mode 100644 index 40fc6f7..0000000 --- a/meganTest/Test1/Test1/asgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -ASGI config for Test1 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/5.0/howto/deployment/asgi/ -""" - -import os - -from django.core.asgi import get_asgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Test1.settings') - -application = get_asgi_application() diff --git a/meganTest/Test1/Test1/settings.py b/meganTest/Test1/Test1/settings.py deleted file mode 100644 index 0fb4e24..0000000 --- a/meganTest/Test1/Test1/settings.py +++ /dev/null @@ -1,123 +0,0 @@ -""" -Django settings for Test1 project. - -Generated by 'django-admin startproject' using Django 5.0.2. - -For more information on this file, see -https://docs.djangoproject.com/en/5.0/topics/settings/ - -For the full list of settings and their values, see -https://docs.djangoproject.com/en/5.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/5.0/howto/deployment/checklist/ - -# SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY = 'django-insecure-_oq)#(5d4221bt6u&s)azqwb^k_a0wst31i2f5)gg-v-v@+i2s' - -# 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 = 'Test1.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 = 'Test1.wsgi.application' - - -# Database -# https://docs.djangoproject.com/en/5.0/ref/settings/#databases - -DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': BASE_DIR / 'db.sqlite3', - } -} - - -# Password validation -# https://docs.djangoproject.com/en/5.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/5.0/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/5.0/howto/static-files/ - -STATIC_URL = 'static/' - -# Default primary key field type -# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field - -DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/meganTest/Test1/Test1/wsgi.py b/meganTest/Test1/Test1/wsgi.py deleted file mode 100644 index 83870d8..0000000 --- a/meganTest/Test1/Test1/wsgi.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -WSGI config for Test1 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/5.0/howto/deployment/wsgi/ -""" - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Test1.settings') - -application = get_wsgi_application() diff --git a/meganTest/Test1/manage.py b/meganTest/Test1/manage.py deleted file mode 100644 index a706907..0000000 --- a/meganTest/Test1/manage.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/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', 'Test1.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() -- GitLab