From b46e808d2292e5caa0a72b4a1d421fd94fbafdbe Mon Sep 17 00:00:00 2001 From: Sabuhi Gasimzada Date: Sun, 17 Mar 2024 22:43:54 +0400 Subject: [PATCH] * --- core/__pycache__/urls.cpython-312.pyc | Bin 2362 -> 2448 bytes core/__pycache__/views.cpython-312.pyc | Bin 22271 -> 22474 bytes core/urls.py | 5 +++++ core/views.py | 10 ++++++++-- db.sqlite3 | Bin 348160 -> 348160 bytes demo/__pycache__/settings.cpython-312.pyc | Bin 3851 -> 3851 bytes .../__pycache__/__init__.cpython-312.pyc | Bin 195 -> 200 bytes .../backends/__pycache__/base.cpython-312.pyc | Bin 2637 -> 2642 bytes .../backends/__pycache__/smtp.cpython-312.pyc | Bin 7259 -> 7264 bytes templates/checkout.html | 3 ++- templates/nav.html | 2 +- 11 files changed, 16 insertions(+), 4 deletions(-) diff --git a/core/__pycache__/urls.cpython-312.pyc b/core/__pycache__/urls.cpython-312.pyc index 370f0f9701503ac4718fb358f444925eccd7fb8e..1e0baeda6fc4b19785656324ebefb61b2f88a6d6 100644 GIT binary patch delta 223 zcmdlbG(lMXG%qg~0}!O|{+6oF!NBks#DM`(DC2X+Ms-_e115%4#uUv|mMkln0tB6+ zwT5RkGlZWm7$sM!t*Ns)hxsRyNELfdetLdsiT*7%2*XcPesTueAw>u;zAQ7f{1$g< zQBFZ(Nl9u^UhztX&mePtSxmNLmuE@I(oLP5%C5kr4-{hr;^OU_``PC+Dtu&PVCC$P doZxz0MD?PG>I#o5ET$i{W%-#Jxr=mx>HuD6H!}bL delta 163 zcmbOryh}*^G%qg~0}#A_a3=LJI|IXG5C;ZCpp4HB8`W)@Ino89WGgi_wKh*-{>jAb zrztmiA=@GA(xRM##FCQKqP*gj44*+de%Ux%#e^2878S?1Waj0^xa237=BDPA6vwz{ wmUxsV#kgc8=B4NBx=vosuE3=W)WHbE#fvvzWS`H-^FdXDpQ(|%NE;{y07PsqGXMYp diff --git a/core/__pycache__/views.cpython-312.pyc b/core/__pycache__/views.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%@9Xqcg6NEB>a-z9# zpMfFtlaKg46G3nGx?m6R%M&}(q}N)1S-ULA+bGm<%(EE$f>~=l4Je!X&0!o-l2D5| zf>SaLf6Oo}R?)j*pCM<0wxMp#HuVr6?#SMtcnVL0iBh)xe!UVO66ZxpZW zS^bH|w(^OSwXJQqxf@|00;WjTR#FZxAtv$*C%2||AV)7kKf(gSIfU~FcOcw}a1r4W z!jlN}(4eawZ&^l{#49*b5U?XN>~ZWW!aE2Q!1Z^_zuY~W!KRd|^f4E7L-@1kHv|67 ZCJ4g&mR*^fPJLSN{=>3gI3m!M^dB9Mh1mcA diff --git a/core/urls.py b/core/urls.py index ff49beb9..23c1c820 100644 --- a/core/urls.py +++ b/core/urls.py @@ -48,6 +48,11 @@ path('send-contact/', views.send_contact_message, name='send_contact_message'), + path('logout/', views.logout_view, name='logout'), + + + + # path('about_us/', about_us, name='about_us'), # path('send-contact-email/', send_contact_email, name='send_contact_email'), #path('contact/', views.contact_form(), name='index'), diff --git a/core/views.py b/core/views.py index 8d6984dd..58b5eb1b 100644 --- a/core/views.py +++ b/core/views.py @@ -1,5 +1,5 @@ # from audioop import reverse -from django.contrib.auth import authenticate, login +from django.contrib.auth import authenticate, login,logout from imaplib import _Authenticator from django.urls import reverse from django.http import JsonResponse @@ -468,7 +468,7 @@ def login_view(request): login(request, user) # Redirect to a success page, or some other page # Replace 'home' with the name of your home URL pattern - return redirect('home') + return redirect('core:home') else: # Return an error message or handle invalid login return render(request, 'login.html', {'error_message': 'Invalid username or password.'}) @@ -535,3 +535,9 @@ def post(self, *args, **kwargs): # Default return statement in case none of the exceptions are caught return HttpResponse("An error occurred during checkout process.") + +def logout_view(request): + logout(request) + return redirect('core:login') + + diff --git a/db.sqlite3 b/db.sqlite3 index 05aaf50cbefd8a83f89b99001edabe1ddbb22b93..8afb3e49b6b047b88b98910b5857d1404c6414c8 100644 GIT binary patch delta 1413 zcmah}O>7%Q6yEW8y@2k zvAzCDsnWC{5SNx8u^g)kaV4k~dyG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ALF5wZS!Wd&A65^#>PzB6(qYFxFgD-|-)lC<^`<#C8WOxOUVOVW*0Do047HwntoBa!IYt$Kh3%$|_o#1d-(hR$R O6qjUk%ZR6QdE!6k)QMyO delta 779 zcmZ9KO-vI(6vt;@ABF0sy)R=B}w_B)<#145{U=! zGx6kC+$#s-%>+Z@#1n~NXu<&w9y}0Jxmb-<4nz%y#zkr*US?kM`_1INy#LgUZ)(Q( z=n!Te*PX@8tE5Ze#Djhk!IqiAH9ppJoE*XC_*nY#_>ELfkdKmfrt@dez94cb+}UnS8& zocM%oEC&#x@$Yy^B{I8e@iLQekWI2lyJZHm*5?Ms(-@6KbVb)S!)Vge=I~g0U`&tq zXUu^ikw6i_FDSwm6y^^k z*FfOh4umlgXmNq5OYRr8{s>kfL^wupTg4EmvvCQ*4wPUUiZ=cL982uiZmV>L)b6L- z|ES=mr3<7cDQ+MhUSjwG-(ZnSbL1KLn^axZji9OrHK&t90>+r-c&D&eay&1v9HPq$ zq(%1f&R!(F^}H9KyGLC+uDj0O`Gnlzq`hCr3(m_+Wd!w*fpwtp1UjU$-9b^Jg0&(!#0LgAr~&L+m5Y(`2->8)n5B};1|(}X$kv*Jx}MG5 z9My7qHq{VS)6tRs2{Sx-apL5;@MK?ePQR8K Nfs&?ME-WrN@4)wIG^QJhZ5iQcWnq=e$_CkLVVVdYG~I%%yuy~eswQjAF-?ydhH^?(wP=Lq tL+ok0$K4f_;3vGHQk-3Z#=V?4?2O5k|LmX$#D~p3Gb8L4eFMWI{BK!;)=dBa diff --git a/demo/__pycache__/settings.cpython-312.pyc b/demo/__pycache__/settings.cpython-312.pyc index d5619444945a792f7315c03b307c07c0241d1e22..423b03217a79e3313ecb208c6109d7dc12cc12be 100644 GIT binary patch delta 19 ZcmeB{>z3m_&CAQh00dflzAfbD2LLaX1mpk! delta 19 ZcmeB{>z3m_&CAQh00hYkA1~zQ2LLb_1n&R< diff --git a/env/Lib/site-packages/django/core/mail/backends/__pycache__/__init__.cpython-312.pyc b/env/Lib/site-packages/django/core/mail/backends/__pycache__/__init__.cpython-312.pyc index ec81f2175145d88109e931f440918724399745c5..5ecd00af29c8d2d4469923bd109cea7bf21abd37 100644 GIT binary patch delta 85 zcmX@ic!H7lG%qg~0}#|~Jdvt4k=IZq-PtN8v^ce>IL0M2FF(d5Ke;qFHLs*N#yzvd nqckZdB}+GTVyvo2OmcovYD{ioW=>2}VsdtBUP^Jy#A&(!w{jj3 delta 80 zcmX@Xc$ks*G%qg~0}#mM?@Cpj$ZIH{yUl8Mxm6(^F iuj@K7NmWEYIlm}XKQ}QmM?WbsIXg8krC5LBY+V55-5Qwy diff --git a/env/Lib/site-packages/django/core/mail/backends/__pycache__/base.cpython-312.pyc b/env/Lib/site-packages/django/core/mail/backends/__pycache__/base.cpython-312.pyc index 1d0d49952f1e6f047f7b0a60390911082c266262..14109a3d09af094763605e4184670073183577c5 100644 GIT binary patch delta 89 zcmX>ra!G{uG%qg~0}#|~Jdt{FBX0ncO0u(6OlWaxQE`k*W?p`bOMY@`Zfaghag2Lr siAQNtOiGq+>f{Billing address
diff --git a/templates/nav.html b/templates/nav.html index d2575f87..9483f4ad 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -74,7 +74,7 @@ >
  • - Logout + Logout
  • {% else %}