From 9750c41fe160c221518988afbd33e61fd1daa0f4 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Wed, 11 Sep 2024 16:29:39 +0200 Subject: [PATCH 1/7] First commit --- db.sqlite3 | Bin 0 -> 176128 bytes taxi/migrations/0001_initial.py | 2 +- taxi/views.py | 13 ++++++++----- taxi_service/settings.py | 8 ++++++++ taxi_service/urls.py | 5 ++++- templates/includes/sidebar.html | 9 +++++++++ templates/registration/logged_out.html | 6 ++++++ templates/registration/login.html | 15 +++++++++++++++ templates/taxi/driver_list.html | 19 +++++++++++++++---- 9 files changed, 66 insertions(+), 11 deletions(-) create mode 100644 db.sqlite3 create mode 100644 templates/registration/logged_out.html create mode 100644 templates/registration/login.html diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..09313b24c957ab06b1fea9c20830eab5f82e8980 GIT binary patch literal 176128 zcmeI53veUJd6+T4;6)H&blN=lAYvgLA0id;%5iIdo>RL+hPNiJ1MaiWS! ziXD|Dmo2F(fAanfswCvfm7-V`f`%aj z#~EG}1cSjK!@o)RHw^zc_!onJJp60?(X`|KWW$xcUoeA|k$jKJPLl7F?>W9X@WX*+ z`>VEX>-#L^;}^M#;S+|B_ETx28TA*>S>4mq+{5Xrm@Y_F@jy-$#ZoON zW~#M{ROw0>o?A`KtS5x^nc2mJ;OWZu2$wu^)+5NJs+5;1LUMUsNNy}H3b$A1mu6Ns zg@weXFtf3~Jf8$jONr$AWx-Pti;_p!6Dyf5v2rO84ttyBAU9L4m8zA)J_6o{;uBVP zBEh|qXjLIwk@uuZs-{4&D^-fJqR8cv!mRC+ce+Q#`iMSK9W`B)OfQvTzqCXI8>x%_Zsiq2L z@L!LR6{}KJE=sI_gB!|9N~wV_(q0EnUM?4!E)KagwY{JF!@iboVIw)evXKD6oLqrp z93cua%#5Q&q@pMnS``U|L#=~p##Y5#uG>(k1`K{MespKi8mG3QVEqqS6^bz%nqmfx>g9V->cg`yEDlRt60Lm7=NHq#Xj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%B^@w>#X|(rEA{|7JLv&XkqROTnlTuO#AozVo5A#ENgddT;;M!h_}T z^xSIp`dVdO&WTm|_V&(8!B~DNa5J`WU&-d5-!30!qy}90s*!Cb_A@qm)fc+8ycvju z!ZA4ee-^L?`<$?2QFgLh%~lSB8@Cp2E#0rhb_)62;$~*;`uV-}mo@_{rTNW>FTR_c z73YInHy88wXCo#5%0hho{_Mv7-ocW*vAyY|C+y}47n(M7)fa4?mLKsX|W)B0V*pmowf@=j^+(}Ncs zC5M0D*KPmWR=3@)$xR1uQP z>q2s4aZ$LvIuF+Yo5Dh3Q<&LUU!G5brlmx3{j%W6lxwAG<aslL?@F?T z{TBE9#E~kp75D+8N-Dq#tC45JzLOSHkEs^(zMPu2x+f;Mcbi*{p=RlnU+U2Ss?Z~$ z-xU>Qzg&S9Yq0kRVr}dTqEby2%6Ylu5wc=cs>(%)H7T@fpDmGFwNMin9Fq=3e^CAhj#4F zqBTx!gU?8Ss8xNrwr1u%!Faq!!@_3}f!w?2%j!p|Y;}kNW1#( z=+k)-2+{ryT`pG;^BzGdiiHB4v4mPlk@L{in_eW$-Av3aKohme|IG7(&kIW6Tvf_T zsUq}WF%N@Brvr9EYn>J88F4jnJ+Ycd&L!5G9aLXHL*f;#QMpxizMW6bug}jcE^cax ziECg*!+V6Z41;v52echPcLq7JVy(_}!0$2kdFy8{z+eW>st#uC2pO@GQqM+;_DS8; hAB&0MTs+<>GT!c{o!LD!s1DjGNNc1Xl{$m>{{wqCWZwV) literal 0 HcmV?d00001 diff --git a/taxi/migrations/0001_initial.py b/taxi/migrations/0001_initial.py index ff29293e..6e6e989b 100644 --- a/taxi/migrations/0001_initial.py +++ b/taxi/migrations/0001_initial.py @@ -29,7 +29,7 @@ class Migration(migrations.Migration): ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), - ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), + ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting registration.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('license_number', models.CharField(max_length=255)), ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), diff --git a/taxi/views.py b/taxi/views.py index 82ad312f..b9fef82a 100644 --- a/taxi/views.py +++ b/taxi/views.py @@ -1,9 +1,12 @@ +from django.contrib.auth.decorators import login_required +from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.views import generic from .models import Driver, Car, Manufacturer +@login_required def index(request): """View function for the home page of the site.""" @@ -20,28 +23,28 @@ def index(request): return render(request, "taxi/index.html", context=context) -class ManufacturerListView(generic.ListView): +class ManufacturerListView(LoginRequiredMixin, generic.ListView): model = Manufacturer context_object_name = "manufacturer_list" template_name = "taxi/manufacturer_list.html" paginate_by = 5 -class CarListView(generic.ListView): +class CarListView(LoginRequiredMixin, generic.ListView): model = Car paginate_by = 5 queryset = Car.objects.select_related("manufacturer") -class CarDetailView(generic.DetailView): +class CarDetailView(LoginRequiredMixin, generic.DetailView): model = Car -class DriverListView(generic.ListView): +class DriverListView(LoginRequiredMixin, generic.ListView): model = Driver paginate_by = 5 -class DriverDetailView(generic.DetailView): +class DriverDetailView(LoginRequiredMixin, generic.DetailView): model = Driver queryset = Driver.objects.prefetch_related("cars__manufacturer") diff --git a/taxi_service/settings.py b/taxi_service/settings.py index b6c0cf19..f23a7d34 100644 --- a/taxi_service/settings.py +++ b/taxi_service/settings.py @@ -39,6 +39,7 @@ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", + "debug_toolbar", "taxi", ] @@ -50,6 +51,7 @@ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", + "debug_toolbar.middleware.DebugToolbarMiddleware" ] ROOT_URLCONF = "taxi_service.urls" @@ -108,6 +110,12 @@ AUTH_USER_MODEL = "taxi.Driver" +INTERNAL_IPS = [ + "127.0.0.1", +] + +LOGIN_REDIRECT_URL = "/" + # Internationalization # https://docs.djangoproject.com/en/4.0/topics/i18n/ diff --git a/taxi_service/urls.py b/taxi_service/urls.py index 8b94449f..ec78e718 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -17,9 +17,12 @@ from django.urls import path, include from django.conf import settings from django.conf.urls.static import static +from debug_toolbar.toolbar import debug_toolbar_urls urlpatterns = [ path("admin/", admin.site.urls), path("", include("taxi.urls", namespace="taxi")), -] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + path("registration/", include("django.contrib.auth.urls")), +] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) + debug_toolbar_urls() + diff --git a/templates/includes/sidebar.html b/templates/includes/sidebar.html index b7cd72dc..a9de6cc4 100644 --- a/templates/includes/sidebar.html +++ b/templates/includes/sidebar.html @@ -1,4 +1,13 @@ +

You have visited this page {{ num_visits }} time{{ num_visits|pluralize }}

{% endblock %} From d7f3b8c61c423587f51c93267dee20557b357493 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Wed, 11 Sep 2024 16:41:57 +0200 Subject: [PATCH 3/7] Resolve --- taxi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taxi/views.py b/taxi/views.py index bba6f12e..1cab8eb3 100644 --- a/taxi/views.py +++ b/taxi/views.py @@ -20,7 +20,7 @@ def index(request): "num_drivers": num_drivers, "num_cars": num_cars, "num_manufacturers": num_manufacturers, - "num_visits": num_visits, + "num_visits": num_visits + 1, } return render(request, "taxi/index.html", context=context) From 34b78144756c7f88b7982995a07adc4fdd270ef1 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Wed, 11 Sep 2024 16:44:45 +0200 Subject: [PATCH 4/7] Resolve without debug toolbar --- db.sqlite3 | Bin 176128 -> 176128 bytes taxi_service/settings.py | 2 -- taxi_service/urls.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index 7f4cd1d7c31f5b58ea96e756d371ce4787bbff3e..da2ae7e1ebeb5063595c238d68e7f2372697f5bd 100644 GIT binary patch delta 436 zcmajbzi!$<0Dy7Xv}u(gB<ZmTW)&2FLTqcgYN_G*MPr!f8baw zHv_rY_41cP9L|Sc@P%4pX(&=`=;ut*RTj>a zgyM23Fr0*0Z9l+5FEoiMp^RhF!eksp78gtUij&obdrAfxwpPZA04F{-2dh!*L{9#ckkca nvv;WixB2vuf0O(f^UBMezgkuT=$K#u3S{$p#TSy!g1^O2X%CAt delta 436 zcmajbO;4L(007`Xom)Iu-ENyPCVH)bm-mIf_>llbEtc93TGl2@D@E8Sr6?_5mv$!J z)l2__H?u4pO}zLgcJQa{>dim!9G>~>%KUZZ_8Z~dZAgUoyMNOs{`Seoy{-6?M!(oJ zWrEOwQPART0q4z!zt-erzW#S#`&vGBQjMbkaskDd}7@(0bNswTaufc9n|t z4pl3)csdxLH9P!7h_5OQGgSo}_X^F4>C$$oAyz==rwmUlJb@-SDl6rvJ_Hni1qv4c z+M*%Pusj62RFN)H)b)1mLna=OFP}f&=d=93{OHg6{6~IgC#Mqc Date: Wed, 11 Sep 2024 16:46:14 +0200 Subject: [PATCH 5/7] Resolve without debug toolbar --- taxi_service/settings.py | 4 ---- taxi_service/urls.py | 1 - 2 files changed, 5 deletions(-) diff --git a/taxi_service/settings.py b/taxi_service/settings.py index 3584b2d9..cc71a76f 100644 --- a/taxi_service/settings.py +++ b/taxi_service/settings.py @@ -108,10 +108,6 @@ AUTH_USER_MODEL = "taxi.Driver" -INTERNAL_IPS = [ - "127.0.0.1", -] - LOGIN_REDIRECT_URL = "/" # Internationalization diff --git a/taxi_service/urls.py b/taxi_service/urls.py index c67efbf7..c80646b4 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -17,7 +17,6 @@ from django.urls import path, include from django.conf import settings from django.conf.urls.static import static -from debug_toolbar.toolbar import debug_toolbar_urls urlpatterns = [ From 4f87da8c3f4cc60b230bafa982b3345a4f312034 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Fri, 13 Sep 2024 12:56:00 +0200 Subject: [PATCH 6/7] Resolve .2 --- db.sqlite3 | Bin 176128 -> 176128 bytes templates/registration/login.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/db.sqlite3 b/db.sqlite3 index da2ae7e1ebeb5063595c238d68e7f2372697f5bd..12e43e3bd979b4bfed092c6a4195951ed9987141 100644 GIT binary patch delta 707 zcmaiwO>fe00EgQ$$IHr!CT2z#Gb5f%q5b!bl5DZSR$j)-WH2Bx2!+v>wv=~hOknZg zO*anq=x11V=+Q)v#&6(ZAHahjz=LLb@aFIE+bxiYu6P~ zGiqG6I@1b8Y1%xjG(ZYh%S4Qqm-u&y@|!p7z)O+dq=_zCKl@J)X?bQ^SZTv9+hKq3a#|0ud@K5CowZ2VtD!St2;*^SZX+n?Gs`?~u>yD5gW0?s(1-3A?rC N^24Yz_<+0(`~sD;)TjUe delta 625 zcmaiwO>fe00LE#zq?2wIO-#%*MiZ_b|CYY+C)tvg0pq1GpioL;CKTGyL02fymY9sh zgE!qc*rT6e*`X&ddNh6m5BmUq1P|iPo5^$f9iAt@XLTQ4-AAvVA+ww38Dw_*hD#v$ zyCCsCNFZU5K$p8$y5?|m!1?AV)$j85qC2uChQ_)kOu3qF`v-%f*D@uiYWPB}u9LZb zvzpC!@*H1b7X?WYMl$1O2lSZh!FJZuXV7MsOUhvsTdz;$cC~Ei^^D)DE?CD}I0N5E zW=zcn7c#AM9QJC!7Yx{CqP4syYQdO9PrA0VHYmCB>u}CQX9_I>j?d7# z-ydURVoij^&$~yf*F-$NB_aR2F}yiLu~_V%rtKG70umID(EZ@+B`WUY*gAr(AAZ{V zwa4$i#ed*Wqxyr}o!>jHJ0Uj1g0+i!crp!`1ISY}1;ZyEN@2*CAb*9vQsVXg)K4~x zrJ^*Mr!Gc@URJe6F20aEDqXV*DhHrl5xa%t`AONBh@3^$N>HANO?Tl*!=|Z%!;Ljf zg48B|tv3P5U^61@L?e+1P6&}OxLogin From 72d5a941b68600afab7443c61ee19482ce68de42 Mon Sep 17 00:00:00 2001 From: Ihor Utkin Date: Mon, 16 Sep 2024 15:26:57 +0200 Subject: [PATCH 7/7] resolve without database --- db.sqlite3 | Bin 176128 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 db.sqlite3 diff --git a/db.sqlite3 b/db.sqlite3 deleted file mode 100644 index 12e43e3bd979b4bfed092c6a4195951ed9987141..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 176128 zcmeI53veUJd6+T8n;_8K<#KU*Jl+k#rFL;#F7bZs)%gx2v0N@maQWI@ZlXdBfB`rp z9$XB-$I6Kcdnd`3oN|0tB-@co71@!Jk|ULDxtx+>mr_dNB(^G*v!g_kOI1>wsG^c$ zM`g)nORCD>Jp*9yB6%yFrQQ2^w+(dn-~asm_1`_y-7|yr)g`GS^4U_kAXIq2ZcxW@ zx|exgr_;R?{!PNaA^69^zX<#@z`yz*O*`rDow}?0KW_x7KJq;(J4wDzzGwSp{}20D ztgl&i%5kx zg>>!R>YiG<`XL$d}4EHiNCeBupC?4 z;uqsvd~9=LWg!8Ymg9+yE4-^H6hs%lFO<{ULiw^U7<4zvL2kNKEmq1$Jp|kjg{REU zc$|AR-mF5VEbWWsWL1V>Pb?QCS(ZvgnOWN-?`)Tf^$>leI;y%To0OCTJdG;yYw_#x zwRmDSzODjQWYxpC`8k@u#(*y*7B&`QOG{g7Vtft&HEWpcie9T^3L@*@;D(Z%l&j#2wAX=?mrD7Di$g9=ZSCjYpr@&u-%Kp5ZpJ|{E0y6G z$B2RqGvjy>u^>qKW<`9#K=WX#u@xbk?KB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