From 112bc9eaea6514e0c6aa2d58aa58a8b6bfbbdc37 Mon Sep 17 00:00:00 2001 From: AbnerAstete Date: Fri, 19 Nov 2021 03:30:52 -0300 Subject: [PATCH] Prueba consultas en Vistas --- App/__init__.py | 0 App/__pycache__/__init__.cpython-310.pyc | Bin 0 -> 164 bytes App/__pycache__/admin.cpython-310.pyc | Bin 0 -> 305 bytes App/__pycache__/apps.cpython-310.pyc | Bin 0 -> 426 bytes App/__pycache__/models.cpython-310.pyc | Bin 0 -> 1101 bytes App/__pycache__/urls.cpython-310.pyc | Bin 0 -> 319 bytes App/__pycache__/views.cpython-310.pyc | Bin 0 -> 665 bytes App/admin.py | 6 + App/apps.py | 6 + App/migrations/0001_initial.py | 35 +++++ App/migrations/0002_auto_20211119_0020.py | 33 +++++ App/migrations/0003_delete_estudiante.py | 16 +++ App/migrations/0004_estudiante.py | 24 ++++ App/migrations/0005_auto_20211119_0055.py | 23 ++++ App/migrations/__init__.py | 0 .../__pycache__/0001_initial.cpython-310.pyc | Bin 0 -> 893 bytes .../0002_auto_20211119_0020.cpython-310.pyc | Bin 0 -> 746 bytes .../0003_delete_estudiante.cpython-310.pyc | Bin 0 -> 513 bytes .../0004_estudiante.cpython-310.pyc | Bin 0 -> 762 bytes .../0005_auto_20211119_0055.cpython-310.pyc | Bin 0 -> 683 bytes .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 175 bytes App/models.py | 26 ++++ App/templates/estudiantes/estudiantes.html | 17 +++ App/templates/maestros/maestros.html | 17 +++ App/tests.py | 3 + App/urls.py | 7 + App/views.py | 16 +++ ProyectoColegio/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 176 bytes .../__pycache__/settings.cpython-310.pyc | Bin 0 -> 2413 bytes .../__pycache__/urls.cpython-310.pyc | Bin 0 -> 1064 bytes .../__pycache__/wsgi.cpython-310.pyc | Bin 0 -> 595 bytes ProyectoColegio/asgi.py | 16 +++ ProyectoColegio/settings.py | 130 ++++++++++++++++++ ProyectoColegio/urls.py | 24 ++++ ProyectoColegio/wsgi.py | 16 +++ manage.py | 22 +++ 37 files changed, 437 insertions(+) create mode 100644 App/__init__.py create mode 100644 App/__pycache__/__init__.cpython-310.pyc create mode 100644 App/__pycache__/admin.cpython-310.pyc create mode 100644 App/__pycache__/apps.cpython-310.pyc create mode 100644 App/__pycache__/models.cpython-310.pyc create mode 100644 App/__pycache__/urls.cpython-310.pyc create mode 100644 App/__pycache__/views.cpython-310.pyc create mode 100644 App/admin.py create mode 100644 App/apps.py create mode 100644 App/migrations/0001_initial.py create mode 100644 App/migrations/0002_auto_20211119_0020.py create mode 100644 App/migrations/0003_delete_estudiante.py create mode 100644 App/migrations/0004_estudiante.py create mode 100644 App/migrations/0005_auto_20211119_0055.py create mode 100644 App/migrations/__init__.py create mode 100644 App/migrations/__pycache__/0001_initial.cpython-310.pyc create mode 100644 App/migrations/__pycache__/0002_auto_20211119_0020.cpython-310.pyc create mode 100644 App/migrations/__pycache__/0003_delete_estudiante.cpython-310.pyc create mode 100644 App/migrations/__pycache__/0004_estudiante.cpython-310.pyc create mode 100644 App/migrations/__pycache__/0005_auto_20211119_0055.cpython-310.pyc create mode 100644 App/migrations/__pycache__/__init__.cpython-310.pyc create mode 100644 App/models.py create mode 100644 App/templates/estudiantes/estudiantes.html create mode 100644 App/templates/maestros/maestros.html create mode 100644 App/tests.py create mode 100644 App/urls.py create mode 100644 App/views.py create mode 100644 ProyectoColegio/__init__.py create mode 100644 ProyectoColegio/__pycache__/__init__.cpython-310.pyc create mode 100644 ProyectoColegio/__pycache__/settings.cpython-310.pyc create mode 100644 ProyectoColegio/__pycache__/urls.cpython-310.pyc create mode 100644 ProyectoColegio/__pycache__/wsgi.cpython-310.pyc create mode 100644 ProyectoColegio/asgi.py create mode 100644 ProyectoColegio/settings.py create mode 100644 ProyectoColegio/urls.py create mode 100644 ProyectoColegio/wsgi.py create mode 100644 manage.py diff --git a/App/__init__.py b/App/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/App/__pycache__/__init__.cpython-310.pyc b/App/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..948d804691bcb12e4148e62e0cc00cf181df217f GIT binary patch literal 164 zcmd1j<>g`kf@<#Ri6Hthh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6w=*(xTqIJKxa zCNU{5wJ63VwK%&ZzaS={D8Di_xg=k~IX@>gJu@FJ0OLCr6vV{GXXa&=#K-FuRNmsS T$<0qG%}KQbSy0RbBv=>#Ty7{P literal 0 HcmV?d00001 diff --git a/App/__pycache__/admin.cpython-310.pyc b/App/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e853627743667b140786a997befdec4f2bd1040c GIT binary patch literal 305 zcmYjLJxc>Y5Z$j!&X7p{f%P@1g9K5cSSdoVIkwqkhp=()_L$ui`6ag6>0i3mDu2Ps zSrN&=ym@bC9y4Jw88M3ci&yhO^(%|hkR+}t;0e!7JNiS0*l;H(UGx4*t(biKN+6oS%&Y$@=`xXz^Ki-1=P0?UsCAw6NUq9 lQurs!;K?8KP1ot)=VslZFBf!d@8K#x8cTvPn~JfR@*gMbPA32W literal 0 HcmV?d00001 diff --git a/App/__pycache__/apps.cpython-310.pyc b/App/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ffa53dc49ce9b3b174dbeb1c134be01cf86017a8 GIT binary patch literal 426 zcmYjOy-ve05I)B#O8*wr6{%~MJODzdB?z_(39&?xEVt)I0XGhDG89I505+b1SIWx7 zD==|R3-qKr-*^9aHskRCh@OY<@{Qh42M)<6FeA285(vmNY*@k=TmyQ@UjeydFFaxB z-$K~?q9_Pi+n<+ZY>IWBt(@hM7=anFosdvKnUHwM5{_QtBd02U<&o>@1n*^$nFyEB z#-P$Ry2!J6Q=6+?X>2*QScJVc5TcM9B}6+Af&v@u^pOycjnsS3F{-s}bS)&Mi*=Xp zJKqOXed^VT?>Ih9@2sk9Dwl<-(o1C@YEz~+mD#FQZKko&D$C8E;TO{+sVqwymD_G~ rcQkuMA^@KStg|gbuO03;a literal 0 HcmV?d00001 diff --git a/App/__pycache__/models.cpython-310.pyc b/App/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d0b06d9c964ff359ef4dbb0c7a49fb21b64a9ce6 GIT binary patch literal 1101 zcmZ`&OK%e~5VrT7Y|@qj<@F14>4_8KQ4}cR&_)owQlj33Xw@Yp5f7cT0I;e6Tv>|glDjmbf^t-C1hrXxU3H!7CSJ_ zdjLriDoEl;ckBs@R|s$JCcbpP2H!{$R(?nLbDBgoyRqV%HD4?O5uTEyB_jBZhHbty zQ_&3nT*@gKV z*-vCl_Q`_wFv&vY11%TSdPZg+7DTT>#GfbKNBy@(YSZU~LhAktX^u)Y>A%rxCWoau zH@Yg5qg3^uPbU3ky|yPa8!~1}%~%_+bN~W+viU!q?G@eYv~9##!E?!&Z88QYOf$4w zjD4K)Y{_Um!8W>wT<@kb6Nx{ZYNKrHHI!x~m(H>ULHy@;#nNJ=rBOP@T@jziEK7y5 zo)lbQmd8qO097SggLU+QqzLxcU_?YVXhd7^Rp?ag6*-(M?j3BoDu=mqMGRg|3}{~# z1Nvg&i=Yxi2x5qAxW^@wR2^u%uj6R^%c|Ep0_)m_>juW*n}KGBIWMJ7xyD*uP8~D8 zi~bt`C+n;GYOT_n$lgRiHCA2Gx6yilumzCBytvo^eFwSf+io)N+H(E7DV@xe6)Un2<+UW68S5NU37<>UOvgvKbe*szO=obJ0 literal 0 HcmV?d00001 diff --git a/App/__pycache__/urls.cpython-310.pyc b/App/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..477827b2925897a8efac8bc163bc49dae92ee8ba GIT binary patch literal 319 zcmYjNJ5Izf5Vi9ou!+PaC_=Fn6(F=|p@S6?(5&1TW)uR6ZFwBf9)g-PP;(o%RC@&q zguO_Jk!Jj!-+120x~_Lvh`rgH{0Qe~B>$rbWEPSRLIDQ6X9Hhy&LDxbPi`1;$S{Q* ziq~|5GuVo_O_n*7*R0uIhnKA3J~PritobkD`=0sTi;kQ;CpSVTl|zbMN)G7jjdCfG zoYk~w3O|8Isaic9ZBI4{Lwx?+;S1Tgp)KRZBxu3Ip;h$GY!!uAzK-UH;+D{okar5L xI751J+K4NwS9tIAADHVN+fIv9V?;EXnw2k)2MuG7CvkI%zg4l4S82t|?;n1HRe=Bi literal 0 HcmV?d00001 diff --git a/App/__pycache__/views.cpython-310.pyc b/App/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..14bdc95d2cd5055445c92a2497292d80502d5424 GIT binary patch literal 665 zcmZ`$J#X7E5GD0t$%>q6=@Rr0XmR$!2vRr!GBiQaB8#9!F^NR3B&v6G0te~T4E+aP z+p)i;rHEF@k^fX8<{@ZEbyGnqt!*4N{2#V;wuZ%%fXL&-61oKa9h$x75R zlajGR*vXt8yOmpenOFOnPr0Z3N0E)xNCk8TD*PbQ@gHIksq99e8>N9zd}eL?USn$- z)Tz@&r)XEIEE=o3;Jnai!7NDC(_%F~?K$nu0R=0T^1Jgxe3sUIAa%-lkfr?MQa|_N z{uMC{e0aEnr#H5)y6E{P^}r*xE-+V1y|CE1MO6WJBUJ(DPb=0EQ2tZE9vy#Y^Vj($ zYQVg>YBc008b4ao=I_9)iNQR9xvBJZY4SI1o8OlD4yWz9OWu}fi_>RyW8&Pfgh(b5 zCItTL8%9)RcQ5Phgz#_xTU)`9ktZG%gdCWE@B{qe@PY$7*@l=;$MMsTT|MdWW<8>K7kN4f3IMu4C1wCbDo{lXbNSXKInzZh9o MEMl2Bp&$GI05|uWJOBUy literal 0 HcmV?d00001 diff --git a/App/admin.py b/App/admin.py new file mode 100644 index 0000000..e593997 --- /dev/null +++ b/App/admin.py @@ -0,0 +1,6 @@ +from django.contrib import admin + +from .models import Estudiante, Maestro +# Register your models here. +admin.site.register(Estudiante) +admin.site.register(Maestro) \ No newline at end of file diff --git a/App/apps.py b/App/apps.py new file mode 100644 index 0000000..9df3b1c --- /dev/null +++ b/App/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AppConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'App' diff --git a/App/migrations/0001_initial.py b/App/migrations/0001_initial.py new file mode 100644 index 0000000..1dab6a0 --- /dev/null +++ b/App/migrations/0001_initial.py @@ -0,0 +1,35 @@ +# Generated by Django 3.2.9 on 2021-11-19 03:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Estudiante', + fields=[ + ('año_ingreso', models.IntegerField(max_length=4, primary_key=True, serialize=False)), + ('nombre', models.CharField(max_length=20)), + ('apellido', models.CharField(max_length=20)), + ('edad', models.IntegerField(max_length=3)), + ('sexo', models.CharField(max_length=20)), + ], + ), + migrations.CreateModel( + name='Maestro', + fields=[ + ('ano_ingreso', models.IntegerField(max_length=4, primary_key=True, serialize=False)), + ('materia', models.CharField(max_length=20)), + ('nombre', models.CharField(max_length=20)), + ('apellido', models.CharField(max_length=20)), + ('edad', models.IntegerField(max_length=3)), + ('sexo', models.CharField(max_length=20)), + ], + ), + ] diff --git a/App/migrations/0002_auto_20211119_0020.py b/App/migrations/0002_auto_20211119_0020.py new file mode 100644 index 0000000..3256cbf --- /dev/null +++ b/App/migrations/0002_auto_20211119_0020.py @@ -0,0 +1,33 @@ +# Generated by Django 3.2.9 on 2021-11-19 03:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('App', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='estudiante', + name='año_ingreso', + field=models.IntegerField(primary_key=True, serialize=False), + ), + migrations.AlterField( + model_name='estudiante', + name='edad', + field=models.IntegerField(), + ), + migrations.AlterField( + model_name='maestro', + name='ano_ingreso', + field=models.IntegerField(primary_key=True, serialize=False), + ), + migrations.AlterField( + model_name='maestro', + name='edad', + field=models.IntegerField(), + ), + ] diff --git a/App/migrations/0003_delete_estudiante.py b/App/migrations/0003_delete_estudiante.py new file mode 100644 index 0000000..47ae2a8 --- /dev/null +++ b/App/migrations/0003_delete_estudiante.py @@ -0,0 +1,16 @@ +# Generated by Django 3.2.9 on 2021-11-19 03:50 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('App', '0002_auto_20211119_0020'), + ] + + operations = [ + migrations.DeleteModel( + name='Estudiante', + ), + ] diff --git a/App/migrations/0004_estudiante.py b/App/migrations/0004_estudiante.py new file mode 100644 index 0000000..73eb5d0 --- /dev/null +++ b/App/migrations/0004_estudiante.py @@ -0,0 +1,24 @@ +# Generated by Django 3.2.9 on 2021-11-19 03:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('App', '0003_delete_estudiante'), + ] + + operations = [ + migrations.CreateModel( + name='Estudiante', + fields=[ + ('curso', models.CharField(max_length=20, primary_key=True, serialize=False)), + ('año_ingreso', models.IntegerField()), + ('nombre', models.CharField(max_length=20)), + ('apellido', models.CharField(max_length=20)), + ('edad', models.IntegerField()), + ('sexo', models.CharField(max_length=20)), + ], + ), + ] diff --git a/App/migrations/0005_auto_20211119_0055.py b/App/migrations/0005_auto_20211119_0055.py new file mode 100644 index 0000000..a1f0c5e --- /dev/null +++ b/App/migrations/0005_auto_20211119_0055.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.9 on 2021-11-19 03:55 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('App', '0004_estudiante'), + ] + + operations = [ + migrations.AlterField( + model_name='maestro', + name='ano_ingreso', + field=models.IntegerField(), + ), + migrations.AlterField( + model_name='maestro', + name='materia', + field=models.CharField(max_length=20, primary_key=True, serialize=False), + ), + ] diff --git a/App/migrations/__init__.py b/App/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/App/migrations/__pycache__/0001_initial.cpython-310.pyc b/App/migrations/__pycache__/0001_initial.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8648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8dL%SY>)-L)*g8X`||6G(ZMa5-g`VDz@>v z^{UI3rq=uK6*z|7jo&kB2|Dyp`_ zJmN5S?p7S?&b|2}*AJMf$%)9uswsyH%8U4h+!F0$x$&-+dtc)>6K(&s?i{c`Yqo?Z literal 0 HcmV?d00001 diff --git a/App/migrations/__pycache__/0004_estudiante.cpython-310.pyc b/App/migrations/__pycache__/0004_estudiante.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d2fefad17c3149464f51cd1cbbdb5fdf6936605d GIT binary patch literal 762 zcmY*X&2G~`5Z+xouI(hHLZ}Bo;)aw<6$wrVp`t($hgMX;#j>>8WTviD+iP|mso@IO zoVmi0BhSEF?3Gh_gdQm4G&EsWGnzlmd^5AU-;Wv5@q;hww_xm7YiyEF#y+uqNCFt} zf|WesrAP#4uNVmMJ~Qx;PrXlG;(`B`4LTQ;%Lc;5Wu6(;}W#V^--XEHNZU)&+o?+ykY z&8p62fmPO=x^8XqQkl6t!?}wrnp_q6N1XL2S^fN>WnN_lt#(1B%dx=$HxY$gsA?>V z9JKQh6gc1Fxh7D4rAl@+?`a~Ns&R!T zeS!9@(RKR9=s8XreWQ$YfmyCo+Go1{1}Sa!@y1H`>bYsZSU_y=lL(pc{42jB_-zsM zZF;Q~m;RsdYMFU7@LdE`Rb_e)#>=^uqb!4Kpx4?xs_4R}*Bg4q+a_(d9kJ{E1$yw& Axc~qF literal 0 HcmV?d00001 diff --git a/App/migrations/__pycache__/0005_auto_20211119_0055.cpython-310.pyc b/App/migrations/__pycache__/0005_auto_20211119_0055.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..225a55e5b3963ee07d84ce361faac28f67ccea18 GIT binary patch literal 683 zcmYjPJ8#rL5Z;IFvwaCrAS4h4RU|jj5s@MYp@c(;D2R}N0?X2Bb2~V`*j}^ilQ>#v zucn2PzqBn?{z4=Kv%Z96q#4a?=lgbc_2y&SEy==j>?Ijnl{Gzz@34 z-JVP)PXyS0p(@$-;6{za$Y?i~trk^V8n8O!NZ6AUt!%&rgAG4cP%D3+2UE%OyU6n0 z;m|5SiyGRpKXv2IRE;!CaRy75Sl?JzU*I@PT`Y!aLby~2oW7_5{S6^LEoAKxe59a* zRzW+fz#4o7;?jc}@eVz<;XbkP3VD~8DVI!7<+|!p-NEIKe-U#Zdk1szVfwUqk5p_S zPg*d=OR#6X?us`?FJac}|ISp`P*%FYMHScYRp82Yg`ZnZqwERH>~42Ug`kf@<#Ri6Hthh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o11#*(xTqIJKxa zCNU{5wJ63VwK%&ZzaS={D8Di_xg=k~IX@>gJu@FJ0OLCr6vX6arWYlaWaj4;$Hd2H e=4F<|$LkeT-r}&y%}*)KNwovnRm=n=SQr3maV*LJ literal 0 HcmV?d00001 diff --git a/App/models.py b/App/models.py new file mode 100644 index 0000000..486b8c4 --- /dev/null +++ b/App/models.py @@ -0,0 +1,26 @@ +from django.db import models + +# Create your models here. + +class Estudiante(models.Model): + curso=models.CharField(primary_key=True,max_length=20,blank=False) + año_ingreso=models.IntegerField() + nombre=models.CharField(max_length=20) + apellido=models.CharField(max_length=20) + edad=models.IntegerField() + sexo=models.CharField(max_length=20) + + def __str__(self): + return self.nombre + +class Maestro(models.Model): + materia=models.CharField(primary_key=True,max_length=20) + ano_ingreso=models.IntegerField() + nombre=models.CharField(max_length=20) + apellido=models.CharField(max_length=20) + edad=models.IntegerField() + sexo=models.CharField(max_length=20) + + def __str__(self): + return self.materia + diff --git a/App/templates/estudiantes/estudiantes.html b/App/templates/estudiantes/estudiantes.html new file mode 100644 index 0000000..9f434ec --- /dev/null +++ b/App/templates/estudiantes/estudiantes.html @@ -0,0 +1,17 @@ + + + + + + + Document + + +

Lista Estudiantes

+ {% block content %} + {% for x in estudiante%} +
  • {{x}}
  • + {% endfor %} + {% endblock %} + + \ No newline at end of file diff --git a/App/templates/maestros/maestros.html b/App/templates/maestros/maestros.html new file mode 100644 index 0000000..31e1a75 --- /dev/null +++ b/App/templates/maestros/maestros.html @@ -0,0 +1,17 @@ + + + + + + + Document + + +

    Lista Maestros

    + {% block content %} + {% for x in maestro%} +
  • {{x}}
  • + {% endfor %} + {% endblock %} + + \ No newline at end of file diff --git a/App/tests.py b/App/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/App/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/App/urls.py b/App/urls.py new file mode 100644 index 0000000..ffabb4a --- /dev/null +++ b/App/urls.py @@ -0,0 +1,7 @@ +from django.urls import path +from .views import * + +urlpatterns = [ + path('',ListaEstudiantes,name = 'ListaEstudiantes'), + path('',ListaMaestros,name = 'ListaMaestros') +] \ No newline at end of file diff --git a/App/views.py b/App/views.py new file mode 100644 index 0000000..a7f6b0c --- /dev/null +++ b/App/views.py @@ -0,0 +1,16 @@ +from django.shortcuts import render +from django.shortcuts import HttpResponse + +from App.models import Estudiante, Maestro + +# Create your views here. + + +def ListaEstudiantes(request): + estudiante = Estudiante.objects.all() + return render(request,'estudiantes/estudiantes.html',{"estudiante":estudiante}) + + +def ListaMaestros(request): + maestro = Maestro.objects.all() + return render(request,'maestros/maestro.html',{"maestro":maestro}) \ No newline at end of file diff --git a/ProyectoColegio/__init__.py b/ProyectoColegio/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/ProyectoColegio/__pycache__/__init__.cpython-310.pyc b/ProyectoColegio/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c4489c701e75726cb58dcfc4750427a93f77ce23 GIT binary patch literal 176 zcmd1j<>g`k0u%1(i6Hthh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o11_*(xTqIJKxa zCNU{5wJ63VwK%&ZzaS={D8Di_xg=k~IX@>gJu@FJfQug=pP83g5+AQuP;Q#;t literal 0 HcmV?d00001 diff --git a/ProyectoColegio/__pycache__/settings.cpython-310.pyc b/ProyectoColegio/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000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