From 0158a1eecd0549d40a78d328c60fd2c93f287ab1 Mon Sep 17 00:00:00 2001 From: luSteven01 <146397397+luSteven01@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:54:59 -0800 Subject: [PATCH 1/2] Adding the product and pages models --- pages/__init__.py | 0 pages/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 154 bytes pages/__pycache__/admin.cpython-312.pyc | Bin 0 -> 198 bytes pages/__pycache__/apps.cpython-312.pyc | Bin 0 -> 397 bytes pages/__pycache__/models.cpython-312.pyc | Bin 0 -> 195 bytes pages/__pycache__/views.cpython-312.pyc | Bin 0 -> 418 bytes pages/admin.py | 3 +++ pages/apps.py | 5 ++++ pages/migrations/__init__.py | 0 .../__pycache__/__init__.cpython-312.pyc | Bin 0 -> 165 bytes pages/models.py | 3 +++ pages/tests.py | 3 +++ pages/views.py | 6 +++++ products/__init__.py | 0 products/__pycache__/__init__.cpython-312.pyc | Bin 0 -> 157 bytes products/__pycache__/admin.cpython-312.pyc | Bin 0 -> 335 bytes products/__pycache__/apps.cpython-312.pyc | Bin 0 -> 406 bytes products/__pycache__/models.cpython-312.pyc | Bin 0 -> 895 bytes products/admin.py | 6 +++++ products/apps.py | 5 ++++ products/migrations/0001_initial.py | 24 ++++++++++++++++++ products/migrations/0002_product_featured.py | 18 +++++++++++++ .../migrations/0003_alter_product_featured.py | 18 +++++++++++++ .../0004_remove_product_featured.py | 17 +++++++++++++ products/migrations/0005_product_featured.py | 19 ++++++++++++++ ..._product_featured_alter_product_summary.py | 23 +++++++++++++++++ products/migrations/__init__.py | 0 .../__pycache__/0001_initial.cpython-312.pyc | Bin 0 -> 1167 bytes .../0002_product_featured.cpython-312.pyc | Bin 0 -> 735 bytes ...003_alter_product_featured.cpython-312.pyc | Bin 0 -> 734 bytes ...04_remove_product_featured.cpython-312.pyc | Bin 0 -> 653 bytes .../0005_product_featured.cpython-312.pyc | Bin 0 -> 774 bytes ...ured_alter_product_summary.cpython-312.pyc | Bin 0 -> 918 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 0 -> 168 bytes products/models.py | 11 ++++++++ products/tests.py | 3 +++ products/views.py | 3 +++ 37 files changed, 167 insertions(+) create mode 100644 pages/__init__.py create mode 100644 pages/__pycache__/__init__.cpython-312.pyc create mode 100644 pages/__pycache__/admin.cpython-312.pyc create mode 100644 pages/__pycache__/apps.cpython-312.pyc create mode 100644 pages/__pycache__/models.cpython-312.pyc create mode 100644 pages/__pycache__/views.cpython-312.pyc create mode 100644 pages/admin.py create mode 100644 pages/apps.py create mode 100644 pages/migrations/__init__.py create mode 100644 pages/migrations/__pycache__/__init__.cpython-312.pyc create mode 100644 pages/models.py create mode 100644 pages/tests.py create mode 100644 pages/views.py create mode 100644 products/__init__.py create mode 100644 products/__pycache__/__init__.cpython-312.pyc create mode 100644 products/__pycache__/admin.cpython-312.pyc create mode 100644 products/__pycache__/apps.cpython-312.pyc create mode 100644 products/__pycache__/models.cpython-312.pyc create mode 100644 products/admin.py create mode 100644 products/apps.py create mode 100644 products/migrations/0001_initial.py create mode 100644 products/migrations/0002_product_featured.py create mode 100644 products/migrations/0003_alter_product_featured.py create mode 100644 products/migrations/0004_remove_product_featured.py create mode 100644 products/migrations/0005_product_featured.py create mode 100644 products/migrations/0006_alter_product_featured_alter_product_summary.py create mode 100644 products/migrations/__init__.py create mode 100644 products/migrations/__pycache__/0001_initial.cpython-312.pyc create mode 100644 products/migrations/__pycache__/0002_product_featured.cpython-312.pyc create mode 100644 products/migrations/__pycache__/0003_alter_product_featured.cpython-312.pyc create mode 100644 products/migrations/__pycache__/0004_remove_product_featured.cpython-312.pyc create mode 100644 products/migrations/__pycache__/0005_product_featured.cpython-312.pyc create mode 100644 products/migrations/__pycache__/0006_alter_product_featured_alter_product_summary.cpython-312.pyc create mode 100644 products/migrations/__pycache__/__init__.cpython-312.pyc create mode 100644 products/models.py create mode 100644 products/tests.py create mode 100644 products/views.py diff --git a/pages/__init__.py b/pages/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/pages/__pycache__/__init__.cpython-312.pyc b/pages/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3ddb928a8ad8ebb40eadf5f9097f91031ce50bf7 GIT binary patch literal 154 zcmX@j%ge<81cyJ*$pq1lK?FMZ%mNgd&QQsq$>_I|p@<2{`wUX^%ThnIIJKx)zqll| zEHy8uRNpzoQz4)zKPxr4q*&i2D={xU-z7CSU%wzRJ+)XrK0Y%qvm`!Vub}c4hfQvN bN@-52T@fqLBt{@E1~EP|Gcqz3F#}lut%D`0 literal 0 HcmV?d00001 diff --git a/pages/__pycache__/admin.cpython-312.pyc b/pages/__pycache__/admin.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a38dcdd4b6e5c8da1b235c9a53d1a532723a35dd GIT binary patch literal 198 zcmX@j%ge<81cyJ*$+QR3k3k$5V1hC}3ji6@8B!Qh7;_kM8KW2(87i4HnO}mWH5qTQ zCZ^qA{cND z%vb?4Ilh=}Utm<0XMbtoq1?O5^HG-G&7)acZV@|CA1Ja04goR<42FSO8J;PfNf>d_ z8l|0UG4?FkqcjZ@PO0ounq;huH6KuVUxsm4v2=chT5tF}CsV--LBx_j@H8&T==SDh zQe+E0TMFVY!ZgZ!o@At1LBc#2!@Mf=%MDnHh+PFMcy|sT{bI1KjP;eQ88FngLciY{ n9nG3XS25YUXfM4i_LbD1i(>`fCL(^o>CX=0(UbQJDmAWuNex}0 literal 0 HcmV?d00001 diff --git a/pages/__pycache__/models.cpython-312.pyc b/pages/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eb213aebedd995048d23e11bb68aa1f7ebd84f11 GIT binary patch literal 195 zcmX@j%ge<81cyJ*$+QI0k3k$5V1hC}3ji6@8B!Qh7;_kM8KW2(87i4HnO}mWH5qTQ z<>sfP<`nyBGTq`#$x6&i&(}*yDq;pou4MQOQuE7PKeRZts93+aB(*FxFQ-)BImA;T zpeR2pHMyi%-vzA4B{er+zaTL^wOAiwo?b!aEe;zXyEG@&u80F@4kHj3gBTx}85tSx KF~}6L0XYC%4ly(U literal 0 HcmV?d00001 diff --git a/pages/__pycache__/views.cpython-312.pyc b/pages/__pycache__/views.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6eee8666f9188a49e467a0ebcc3edad6f0d968c3 GIT binary patch literal 418 zcmXv~Jx{|h5Ve!EqJ%;RBsxaGlBI@)sp>+9vQ&r-CMP~i6CBno<^@wKW+0LPC>GLAPYnh#T>=B zhq2`jcVf5a0(T!#&zpN;>B|l*vDxZqonA1NibSyxo3dmHWpYsX<;4Zufz0Xv3#4(b z0#N*1@Jkdr-TU2UblmDN&P8w|B&SURy|m+@W4yi`DpS6j*{bY^gW&gsTq`COQJPIz z!YAbP>MS^yV$23wk@mQs3`Lv8f~5T+Q)D_~Gu24vrV@#m-P%^#qm&@kHoyb=@b^~r z#=B2e9?3vK-LPbQnmaWjSXO!_I|p@<2{`wUX^%SAu5IJKx)zqll| zEHy8uRNpzoQz4)zKPxr4q*&i2D={xU-z7CSU%wzRJ+)XrH#5B`u_QA;uUJ1mJ~J<~ mBtBlRpz;=nO>TZlX-=wL5i8J8Mj$Q*F+MUgGBOr116csS6)GSA literal 0 HcmV?d00001 diff --git a/pages/models.py b/pages/models.py new file mode 100644 index 00000000000..71a83623907 --- /dev/null +++ b/pages/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/pages/tests.py b/pages/tests.py new file mode 100644 index 00000000000..7ce503c2dd9 --- /dev/null +++ b/pages/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/pages/views.py b/pages/views.py new file mode 100644 index 00000000000..86aea120381 --- /dev/null +++ b/pages/views.py @@ -0,0 +1,6 @@ +from django.http import HttpResponse +from django.shortcuts import render + +# Create your views here. +def home_view(*args, **kwargs): + return HttpResponse("

Hello World

") \ No newline at end of file diff --git a/products/__init__.py b/products/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/products/__pycache__/__init__.cpython-312.pyc b/products/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9b63a007d78c9ebdd58b41ff1565de92862ec920 GIT binary patch literal 157 zcmX@j%ge<81o@BVWP<3&AOanHW&w&!XQ*V*Wb|9fP{ah}eFmxdWuqTjoLW?@UtE$} zmYSDSs_z`)sSr?;}Dp%3B;Z zK=Vs;QtgU(fhK_*RV)uAJ}@&fGTvoS_{zq>DD!}UwVkVx>pFw*MF!ys?pGOPia`Da E0L!RPIRF3v literal 0 HcmV?d00001 diff --git a/products/__pycache__/apps.cpython-312.pyc b/products/__pycache__/apps.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..eac619edd9109ac147d15c32cb45d446ceb14380 GIT binary patch literal 406 zcmXv~Jxjzu5S>YK8ZQ^MP-|_3G?&&w1i66N92Qy_izVEy#~t}Hdl6C!_XF&%@ehbU z#Xlec8?EewXk+DUKBjo{9y4!ec3y3}4;0DA)9i-wrxIQCT2dVnSpf%*Aw=jSf(B>6 zwIy&};EUe$`C4H(y)PvkEH_TmbdUSlMSRqP|e^0b_T05VjRVWe_DL1it@#M@-lSZj?c>8^CJ~Qvl+xNL#HUM8Ae!TPF zDgb;F&SdFF;&6qF9e@Fb6a=sVAyB|Nz{)njDuHcna^UzoP^E6DJrxW7(yh9! zFnyDv@F~;6jMBBSDA-@P#6dL{k7uVa@%#W$w?mOf5_uZ?Ek8|cm?Qkk0wztA(R9Nu zv!d&UC?KxO4Apsg6l{>NcH>|X}h2k}zP|WnyPbp!gI_ah|GLK2(#eOIC zqmY?3S;GjA>so4exR^`pbFIHvWs_c3r z>q`IjY-IVPHnOhw?;TiGK~?vy>Mr?obMN8fk@e&sbYxxbum1&(tmPMX;&YR%8@9$u zIInOCZ_2Le_r(Ou%FYTfrx&?m#cQ(NH{$c$6(gFQ;pV#vA^Zv!e;PWx`m*_&zM{VX Hm-)#*`H0wZ literal 0 HcmV?d00001 diff --git a/products/admin.py b/products/admin.py new file mode 100644 index 00000000000..773b3a1c15d --- /dev/null +++ b/products/admin.py @@ -0,0 +1,6 @@ +from django.contrib import admin + +# Register your models here. +from .models import Product + +admin.site.register(Product) \ No newline at end of file diff --git a/products/apps.py b/products/apps.py new file mode 100644 index 00000000000..864c43ed858 --- /dev/null +++ b/products/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class ProductsConfig(AppConfig): + name = 'products' diff --git a/products/migrations/0001_initial.py b/products/migrations/0001_initial.py new file mode 100644 index 00000000000..3a2d906f552 --- /dev/null +++ b/products/migrations/0001_initial.py @@ -0,0 +1,24 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Product', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=120)), + ('description', models.TextField(blank=True, null=True)), + ('price', models.DecimalField(decimal_places=2, max_digits=10000)), + ('summary', models.TextField()), + ], + ), + ] diff --git a/products/migrations/0002_product_featured.py b/products/migrations/0002_product_featured.py new file mode 100644 index 00000000000..bf84ab2ad90 --- /dev/null +++ b/products/migrations/0002_product_featured.py @@ -0,0 +1,18 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:22 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='product', + name='featured', + field=models.BooleanField(default=False), + ), + ] diff --git a/products/migrations/0003_alter_product_featured.py b/products/migrations/0003_alter_product_featured.py new file mode 100644 index 00000000000..529ab3f64c5 --- /dev/null +++ b/products/migrations/0003_alter_product_featured.py @@ -0,0 +1,18 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0002_product_featured'), + ] + + operations = [ + migrations.AlterField( + model_name='product', + name='featured', + field=models.BooleanField(), + ), + ] diff --git a/products/migrations/0004_remove_product_featured.py b/products/migrations/0004_remove_product_featured.py new file mode 100644 index 00000000000..5a83dc0f052 --- /dev/null +++ b/products/migrations/0004_remove_product_featured.py @@ -0,0 +1,17 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:23 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0003_alter_product_featured'), + ] + + operations = [ + migrations.RemoveField( + model_name='product', + name='featured', + ), + ] diff --git a/products/migrations/0005_product_featured.py b/products/migrations/0005_product_featured.py new file mode 100644 index 00000000000..4ea5246d219 --- /dev/null +++ b/products/migrations/0005_product_featured.py @@ -0,0 +1,19 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:23 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0004_remove_product_featured'), + ] + + operations = [ + migrations.AddField( + model_name='product', + name='featured', + field=models.BooleanField(default=False), + preserve_default=False, + ), + ] diff --git a/products/migrations/0006_alter_product_featured_alter_product_summary.py b/products/migrations/0006_alter_product_featured_alter_product_summary.py new file mode 100644 index 00000000000..0675c834087 --- /dev/null +++ b/products/migrations/0006_alter_product_featured_alter_product_summary.py @@ -0,0 +1,23 @@ +# Generated by Django 6.0.2 on 2026-02-24 00:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('products', '0005_product_featured'), + ] + + operations = [ + migrations.AlterField( + model_name='product', + name='featured', + field=models.BooleanField(default=False), + ), + migrations.AlterField( + model_name='product', + name='summary', + field=models.TextField(blank=True), + ), + ] diff --git a/products/migrations/__init__.py b/products/migrations/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/products/migrations/__pycache__/0001_initial.cpython-312.pyc b/products/migrations/__pycache__/0001_initial.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..dd3a0f281c0c754aec0b57507a53f1401ce6eb76 GIT binary patch literal 1167 zcmZ`&J#5oJ6uxt8=g%!pC=^9e$xsy%wM`gU09ArkE#*%XmBowY`mW)E;{=~mHB3cf zU}U2M0~&3$_>xor~BT|z4!cmWF!Unaelog zUnBs23UYjuAvm1l;2l5!K?l^K0qc?>K_G!8fTY&|#W1X?$4)2TPAtMktSuLn13`)s zOVvr$vwYHUDO2kWgdJ+1_yCX|l0yxOq!<_w0YgI2h*g0hO8_f1?X*LLk%VIWE?(2m zxPu5H87W=0BS*LE5{ifF>>27rH`(F2#o@YCs2hv;Y0G26Zo0#pCJt9>q4HwHPg^vC zM!V-uDfR!w>z@}v<>X7H7GV+tB#rC6W_rHn>=$7^66Ncri0z8 z|BR&(rnX0#Vpe=`%9>-j&zbDD9ET}9wv7+OLOs*V&3s<@c6~Ru66jBOnjk;Dz1YuB_wv&}^0R?n9;DT=(IX|9Obue`torJn z$7dT={)q2a5{1v6MQdT}!)`}!n-a26dzB-WxD^d@&MR>$ekPjdW)OoA{!sxe9;sQV RzD@P@$(}y>8*mbO{{!#lFDn25 literal 0 HcmV?d00001 diff --git a/products/migrations/__pycache__/0002_product_featured.cpython-312.pyc b/products/migrations/__pycache__/0002_product_featured.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..37a73d8d8c00828e581d8a43c738c96fc26ddebe GIT binary patch literal 735 zcmY*Wzi-n}5WZ(SFSeDU5+RC6hYk&rmpVm^r4mpTfoR207B3HzcZnSNNAQnIkr+Vg zz}T$|e*mccPnaShC3-6p6OmGc#Ke0}tiTQD@4I(*zVGhq+L{g0j(&a$-VuQBid0rx zg89A#7r=p&5F+A{Nb@uT8axHAodMU83}{uf`d;b_?CB%Jsr^vI(S#iZ{nXEcB+dkl z5{_ZkUDW{8mt_80f(taq8l6sOmj!W<2Yx8(%eXLm=;uX>{Lmqy&avkgVeaTs zl~TfDKSE)YzSavcX90XHXbKQh<;p#gq;j=xy3IqSJM8RxUVuyGdIie6yvaPpPW3~dYL8zlzQBQfgksi z1B?>4(&(-(;Yzjl+46x^8h3`HRNb|73SlnGM$FM|)zn#%61} zu{FKfnl{_#_a@EuxY_=U-xN~|blRjJo~IjCzhlP`7B8pT;crUGrO?G6Z>zL2 s_l`uu+*|BzKfNodI%c*h-ApHh{H8#hYuX_6+@7p&kJq<m?DNmw=ywdDMd(3+&Q)a;)dt%`~2R!_ubu>^>r82ihg{I-V%Usn$)XN zfyKT8r@(=e7!neY#0U%m20R3A90NCz3}{`n`kt9f9GDZ!Ykb$lGo+hDeG!hLEX^fN zGLCWHTh##6jTSGJdI|^u;Sd;{^hsbEfYzWK`0o->V{rYC4lewwYj##ipRIZz)ybYT zJSv^1^(<;IdnhtK?u~M})$Mj~vWl`J3`b*uT&`7$v}?&Tl^tz?rD1~7Dr4g)!k8a= zjl+pFi4tCb9u4JO05SO#9gZCYfJb^jDYQE3>y) zsJHyja%VUZ`aa5_L4I3>V<;#%ox(IO(sxe^7o2M!+?l;IwRh&*yYtN}^H%%h`mEKS zw%T7?H_q2A$1P0SqVFGzOLezH&yo%=C+qN6rSa12a=$H|R_1OiB<(xP)7ux96;;m^ f@~bKoCL!b(1>&94CZQ+pY-4Y_vG)@cDXaegKFPR; literal 0 HcmV?d00001 diff --git a/products/migrations/__pycache__/0004_remove_product_featured.cpython-312.pyc b/products/migrations/__pycache__/0004_remove_product_featured.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2306f4eeb9c783d95ade8c781200a74f585872b0 GIT binary patch literal 653 zcmZWnzi-qq6n>5qH%Y0~mI{VerAS>e(40gkRI#)IfoN4BSi)e1^W&6LejH9x={Ar$ zFm~(0KY+@A!qlmiS0*MRUAr)0=Po)VJUoBz)AxSbKbDq!&}aPnYjR8gej2Ac&J0YR zXmAb!1W6$y5g}l~a}d@k2#REAcLDSJf=+Q{jqSksWt@O0KT8HOu96}z`*STomteA| z*>gaMh=9lvWI!Tn0oud1$$vvYmlyQAePK;mtz=^-V9Gn}Y6O;YN3sxgzbe&wuh)Cb ztjm$z?0J8kq|&2OiF literal 0 HcmV?d00001 diff --git a/products/migrations/__pycache__/0005_product_featured.cpython-312.pyc b/products/migrations/__pycache__/0005_product_featured.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5430799c0ca801936c8487cd21b83f8aefde7a63 GIT binary patch literal 774 zcmZWm&x_MQ6n>MWX%e=w7GafESY#{Yvgu*>CW}9o6-5^h>m`>V+j%W5`B5j$LT?It z@VK7#;vb;Yga3!8g3vNoPo6AvMeyWInoz|#ynNrwdvD(N&6iru0eRm2c;Ej_0KO?w zo=O3h2NGNY14crKh)*KT*9d6v7?^erOh+;>%ck{rqOY*8j}5o-T@hCkPSo%5VAN0I zRG3l1Fibn^9)M~=mZuV20)kH%_!=WU;_DiqF~}GGy9MMLO#L$l*Z$2b#*9yuiIi4g zb7HKpoM(-zt|jc}7J2!s(B&RHA>McrWGEsh5uM4C65K z9-Tbde!-IgO2yvcAc%X(p;YXZE_mzL@}wX8{~5769CP*dc~Bs|FT*)3OtAMCx^}~S z{cPcY-F)lJtj5%8%(u4Z*BkSC>*DUL-kR21AMk5^Z+`pEm0hu&gs0qBG^S9wy-By0!9LQgotpAhzPhZ7fFlnxtL)~97;y%D<_6PHLuqVowyhH z5tY4wfE%?JIS45^nSWy76alg@L6$&p7h9r$K0Wjt5jqZK=}(mt{tY=Q-i9#o|jxuH(NvG&HK%X{c>e z&9+%;;sV2~w*4w`T%OJufdTjg{B{qbkgtbo_uUx6170|kxMTG}5V+v@sf(&DcoSz( z3kHxc?jxFWb$$-a7ZHS!8O87#d^a&4wjOUi4}(6i!Oi`?<9CC7@B*_C!(1%iWU}0~ z9e(?gIDfhGc^iXa$e&qiIEa9mV>FYI+L(#Ly8QO(Ohf9;_u53Mjg{K;+SYV!bE?-* zb|-p$tk=)rLce`kmQ-yyZeyx%^SJG?zJ0cSp*OO)%8D+(dlGIG_Z}J&RY^KogB+zA zrn+UFUFTtG>?T80xtA?sFRU@j-(YlunVE<&{vji5T*_-$KG7!CopE*NJ7Ofw{skMm B<~#rZ literal 0 HcmV?d00001 diff --git a/products/migrations/__pycache__/__init__.cpython-312.pyc b/products/migrations/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..103711950fb88c27cd77254370a86ab3720e9e49 GIT binary patch literal 168 zcmX@j%ge<81o@BVWP<3&AOanHW&w&!XQ*V*Wb|9fP{ah}eFmxd<*pxEoLW?@UtE$} zmYSDSs_z`)sSr? Date: Mon, 23 Feb 2026 16:59:18 -0800 Subject: [PATCH 2/2] adding the new urls product page --- trydjango/urls.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 trydjango/urls.py diff --git a/trydjango/urls.py b/trydjango/urls.py new file mode 100644 index 00000000000..eac6b7eb0d7 --- /dev/null +++ b/trydjango/urls.py @@ -0,0 +1,26 @@ +"""trydjango URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/2.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 +from pages.views import home_view +from pages.views import product_view + + +urlpatterns = [ + path('', home_view, name='home'), + path('products/', product_view, name='products'), + path('admin/', admin.site.urls), +]