From eb57800bf865cb0a0228c41da4fe0d66dab9452a Mon Sep 17 00:00:00 2001 From: Viktor Rura Date: Wed, 13 Dec 2023 21:55:12 +0000 Subject: [PATCH] Solution --- db.sqlite3 | Bin 0 -> 176128 bytes taxi/views.py | 14 ++++++++++---- taxi_service/settings.py | 2 ++ taxi_service/urls.py | 1 + templates/includes/sidebar.html | 8 ++++++++ templates/registration/log_out.html | 10 ++++++++++ templates/registration/login.html | 10 ++++++++++ templates/taxi/driver_list.html | 6 +++++- templates/taxi/index.html | 1 + 9 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 db.sqlite3 create mode 100644 templates/registration/log_out.html create mode 100644 templates/registration/login.html diff --git a/db.sqlite3 b/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..695f50a1a936dfd08ae1c973cec3eb746232d009 GIT binary patch literal 176128 zcmeI53y>Shd6+T4;I&wwm-`@&x3|YxELS9Mxm>&#;ML_0+y%+yzQ}!$+)Grb0Wbh( zi3OH;EO#jB9~H1;zYJ8m9wKnk5ZKsC#tBV z*il(>*^;XAch3MbgU9Y3?URpp|K72I?*99qzrX&wXS#c4uzq7nu1P|^T-gz8LfAB5 z;yBYwf?zV4w&C9t{2PLQ9Q=#JKOX)y|7hA#f7_-DSe&qUY-%tBi zov%8!?H{mx-?n8t!!PiI=C5!S)2B=y@1@c~Ga4_QvU_J{xQ8<}F;kRk;=Y{T5li*F zn61?-Ql%qdXl^Z)+(-!<$xBNq!Pk-R6VCbMoKKKTHK`y~gq76|VP$h^Nw~hYu$)}m z5*AZiLUMCsbzucGEvHsC&I`VhxFh+5J+YF#BUa9ZqEUaV9OP!p^-`^J&_lrgP<+bn zO{KU;DXj{*io7RP()B6?yHaIGu2$u8smiSFkvG_-Vm(A3tB$HJ$|fTh08gum!dmKb zYAv-gms(eWDzfTf{K7oVUt_=*Ru(oEl1oclYGP_00BJQ$cSWz)FV<^!bV!bO4FAJ~ z*X|7lxkqCij0=@=eb+!%NjcG*ry}rXqsXi}CO{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(0|1O3?A(c*bYrQE7CLKTIzCYEwwV2T5okw zeE}7TUzn$IYwUcxu(GhRkX%~YQWI12U`5k=gp3S>wAKR*2hg2Cj;&a&Gac}|jD7yb z$w?T@z*&{Sj2$5>R?^DZsH%QaHx0()Vl{{ user.username }} +
+ Logout + {% else %} + Login + {% endif %} + diff --git a/templates/taxi/index.html b/templates/taxi/index.html index 13c59aa8..d25a2862 100644 --- a/templates/taxi/index.html +++ b/templates/taxi/index.html @@ -10,4 +10,5 @@

Dynamic content

  • Drivers: {{ num_drivers }}
  • Manufacturers: {{ num_manufacturers }}
  • +

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

    {% endblock %}