From f16ee4e7e3fea7ea96e286236b1898ac049e2bd1 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 10 Aug 2022 10:19:27 +0100 Subject: [PATCH] Updated Login/Signup Pages --- .../Animation_lib/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 162 bytes .../__pycache__/settings.cpython-310.pyc | Bin 0 -> 2483 bytes .../__pycache__/urls.cpython-310.pyc | Bin 0 -> 990 bytes .../__pycache__/wsgi.cpython-310.pyc | Bin 0 -> 577 bytes Login_signup_FE_UPDATED/Animation_lib/asgi.py | 16 + .../Animation_lib/settings.py | 140 +++++++++ Login_signup_FE_UPDATED/Animation_lib/urls.py | 22 ++ Login_signup_FE_UPDATED/Animation_lib/wsgi.py | 16 + Login_signup_FE_UPDATED/base/__init__.py | 0 .../base/__pycache__/__init__.cpython-310.pyc | Bin 0 -> 153 bytes .../base/__pycache__/admin.cpython-310.pyc | Bin 0 -> 194 bytes .../base/__pycache__/apps.cpython-310.pyc | Bin 0 -> 428 bytes .../base/__pycache__/forms.cpython-310.pyc | Bin 0 -> 1283 bytes .../base/__pycache__/models.cpython-310.pyc | Bin 0 -> 191 bytes .../base/__pycache__/urls.cpython-310.pyc | Bin 0 -> 373 bytes .../base/__pycache__/views.cpython-310.pyc | Bin 0 -> 1681 bytes Login_signup_FE_UPDATED/base/admin.py | 3 + Login_signup_FE_UPDATED/base/apps.py | 6 + Login_signup_FE_UPDATED/base/forms.py | 49 +++ .../base/migrations/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 164 bytes Login_signup_FE_UPDATED/base/models.py | 1 + .../base/templates/Animation_lib/home.html | 9 + .../base/templates/Animation_lib/signin.html | 102 +++++++ .../base/templates/Animation_lib/signup.html | 81 +++++ Login_signup_FE_UPDATED/base/tests.py | 3 + Login_signup_FE_UPDATED/base/urls.py | 9 + Login_signup_FE_UPDATED/base/views.py | 63 ++++ Login_signup_FE_UPDATED/db.sqlite3 | Bin 0 -> 131072 bytes Login_signup_FE_UPDATED/manage.py | 22 ++ Login_signup_FE_UPDATED/requirements.txt | Bin 0 -> 372 bytes .../static/style/signin.css | 279 ++++++++++++++++++ .../static/style/signup.css | 264 +++++++++++++++++ Login_signup_FE_UPDATED/templates/main.html | 23 ++ Login_signup_FE_UPDATED/templates/nav.html | 7 + 36 files changed, 1115 insertions(+) create mode 100644 Login_signup_FE_UPDATED/Animation_lib/__init__.py create mode 100644 Login_signup_FE_UPDATED/Animation_lib/__pycache__/__init__.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/Animation_lib/__pycache__/settings.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/Animation_lib/__pycache__/urls.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/Animation_lib/__pycache__/wsgi.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/Animation_lib/asgi.py create mode 100644 Login_signup_FE_UPDATED/Animation_lib/settings.py create mode 100644 Login_signup_FE_UPDATED/Animation_lib/urls.py create mode 100644 Login_signup_FE_UPDATED/Animation_lib/wsgi.py create mode 100644 Login_signup_FE_UPDATED/base/__init__.py create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/__init__.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/admin.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/apps.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/forms.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/models.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/urls.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/__pycache__/views.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/admin.py create mode 100644 Login_signup_FE_UPDATED/base/apps.py create mode 100644 Login_signup_FE_UPDATED/base/forms.py create mode 100644 Login_signup_FE_UPDATED/base/migrations/__init__.py create mode 100644 Login_signup_FE_UPDATED/base/migrations/__pycache__/__init__.cpython-310.pyc create mode 100644 Login_signup_FE_UPDATED/base/models.py create mode 100644 Login_signup_FE_UPDATED/base/templates/Animation_lib/home.html create mode 100644 Login_signup_FE_UPDATED/base/templates/Animation_lib/signin.html create mode 100644 Login_signup_FE_UPDATED/base/templates/Animation_lib/signup.html create mode 100644 Login_signup_FE_UPDATED/base/tests.py create mode 100644 Login_signup_FE_UPDATED/base/urls.py create mode 100644 Login_signup_FE_UPDATED/base/views.py create mode 100644 Login_signup_FE_UPDATED/db.sqlite3 create mode 100644 Login_signup_FE_UPDATED/manage.py create mode 100644 Login_signup_FE_UPDATED/requirements.txt create mode 100644 Login_signup_FE_UPDATED/static/style/signin.css create mode 100644 Login_signup_FE_UPDATED/static/style/signup.css create mode 100644 Login_signup_FE_UPDATED/templates/main.html create mode 100644 Login_signup_FE_UPDATED/templates/nav.html diff --git a/Login_signup_FE_UPDATED/Animation_lib/__init__.py b/Login_signup_FE_UPDATED/Animation_lib/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Login_signup_FE_UPDATED/Animation_lib/__pycache__/__init__.cpython-310.pyc b/Login_signup_FE_UPDATED/Animation_lib/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e89dabcd34dce9c726071b0f465aa69dae2d5811 GIT binary patch literal 162 zcmd1j<>g`k0x{zcNg(<$h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6w&*(xTqIJKxa z#xXcFSRpjnH7LdX5+FdKV#)w+8ySbtBuqp#&yMAx3$Q%^l`p--|+jKfS*X|!6s@BO{^cI9NV84fOg`|r-riyZey z_%VH@;o~Vh^miB#r*SBT;%3Z>Yw;L|<2dnC>=*u5?r834PD`SMmO{Li?sM9FpF?wR zV_F8@NqApCDQy9zaT3kn;QBGdqmXmqZH&aw!W+IH)3PY5Euuwq5iOxhXc?`bRdo4H zlEk!&=nA?Da#zq=G+v9w>m=6awIy^zyM#W|mcj1|Jge|rMmM!9;OSQANxOC*fp?EJ_)JH$fIGflxHlnG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@A>6; cDjqw%BibtP_^Ia~eua;Z?_@H;zfY(B1=)*E2><{9 literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/Animation_lib/__pycache__/urls.cpython-310.pyc b/Login_signup_FE_UPDATED/Animation_lib/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8c12b79cd4ca1d1cad6090463a4e35845fd90f89 GIT binary patch literal 990 zcma)5L2uJA6n4^d?a~f7arUi^R1&cX2`WHTV-u4Qhm~HcN|_tGt-IKcYVAez&rhgd)Z=C2Rdt$QENP1d9b_ujp~^rvmw8l$L9ZhVABk_%$F zl4;K8cyjp>pDMZF%Z;w0VfcB)@YP1=1+kWCX|8b2jm27REHmzc!B*iL&c2u!pDT@p z(hPICPvwTCjT!INzJtr-LX72pCsEolt1={0sSwF&y+REY9u5CMFXZVg} zoja&Zc`(~~u9gWHxU1B2feN=5Md1&4z$o&{CZU4M$S(uuc-gA6?+&VXQlh&Ci(iC1znob|pL_wd`e6Haoqq4KdUc&$(9k_5{xMgMFG?ksbK7T{Hmei8bwOS#m2; zGbI`f(s zJXztD#Y8}*@TLT9lPgomB>L@5A(LL<9v5I)bH?^$xbEOxe=<5}>G0xWJQ=0z!}(zP zet6rx<3Vh|TB!@u>$nbMUI=3@MB^UqLB!c9Cxsu;iD@y8C;) zKS>%FJHdM?&!)I%DB35N3V9y UzxE%5mg`k0x{zcNg(<$h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6wp*(xTqIJKxa z#xXcFSRpjnH7Ld literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/base/__pycache__/admin.cpython-310.pyc b/Login_signup_FE_UPDATED/base/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..07191c13b7e28d0e5ad141b73f18da8253e62e71 GIT binary patch literal 194 zcmd1j<>g`k0x{zcNlrleF^Gc(44TX@fuanW zjJH@5Q*tx&{4|-O_)@YG^V0M6lJoOQiZYXmKnAR2C}IXuVB(jhvsFxJacWU1OBR-b5bA@+)`6%?6v=Wpw+c89;$(oe`~v<3f5|Ho z8#5E5rKKt&z`_8^{IP?kH>G@Ckf#;VE4$Z}2imt~9K!7Te)0k3nPrw28PJl_e zWw8TpM1tNovPeM9@vN#AWwFjSk2Z5?6oVb)3XPa5uly{j_VB8d`%b;gG&I^%C&W+DGGFxTu1I}Msq4t#%kZaMZ zh70WH>rTMdK1pr&u!G;p;xbujS?gpLt)lTNx_wA)q<(J7DiKAN3$C)1H&Wymlf;fs zL{;gqdaW61*p2BU1dq7Xqr2QPV5YzShvn9e9cJ18W4l`)bH=;s-hXX(rLEwAjMyKH CfM=`# literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/base/__pycache__/forms.cpython-310.pyc b/Login_signup_FE_UPDATED/base/__pycache__/forms.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..75a084fda154d2a6d1b4900cc339085505b35d14 GIT binary patch literal 1283 zcmZuxOG_L<5bmDG?(9=nL}L!YJP3@01x*MVLNI6y1mYo!mtkS(-R|9;bslTaEI#n2 z;4QzvLn68Om-?DhE+I$pl&aY=j!AmxZ>qYgzv`-~o~TwU6BzT)e|3JEgnUOOKMYXT zVaCq@IN{VM0d*)vS@X3(cXUeL6RvaPlyF1P6WuYm*&=q~2kam=Rnt4MkQ-94#EZhM zNCvQG;93_Q@Y-VNSxw_Xb^5j z!qJvrD*D1MDocvJu_pyrM(SxKha;gXBcFA}Ao978suZvTUxfW+0HPOWqULdBihz0k zQ6pnrPt|5O3T#uBpiB~rCMyV41gxJbjaVG-N0Kiq>qb1Xma^e!D=Uhw+Ql3JZp*RM zP_5sgTCoetjK?E5t>wC2=q0YJ3O!HwJXVE$kM~8QOqL`P)bWV3MA*7AV&V6c!DJs+ zclYsqNma>pyFMJzbuY>F+QzFkHdx$#+uCU@?zG;0YHx~oH;G1V7J315eXrvtf(2`< z?GB4Yy9aFGqg^%$)io))>XZHyJB6}txTg@>XEZ&E7hx`sY!D- zZ*u&n?=^_EjzRAM-1NPGi`0h;cR?NKOy~{$sFD$V6bZ8piRYBl2n~c;fNdx#)DoKl zYFT#OAmU>m<*MuMjhR2ONW2@$1f%ffJZ@gR3lGt5V4NmMaRI<02CY*06hylqAHhpL zMtFjNWlK$}mVJn>@O{_K@jgHo71ReZNo)g;6oPnBWTAkkzS|C#>t?W pejSNbQuqI7PxFY=q*9_>)J52oMpf49NiE*sKOzlXB~?1B{RZq9D186` literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/base/__pycache__/models.cpython-310.pyc b/Login_signup_FE_UPDATED/base/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bf321d7a5da2bf66640b7b3a1c5ffc6affaae4c1 GIT binary patch literal 191 zcmd1j<>g`k0&(LHNisnCF^Gc(44TX@fuanW zjJMcw^HWlDiv2X1ZgHk$CFZ5)>!l;S7P>DT5l5QfJ=-_ zN&SJ8{f|HSUR|HnrDjUkS4CMImBsBteZ%zA*bg<4T#$9goAtTDy@b^Wn~} z>{g&o>eb&t?k!)TABESRa_hOL&Mf65E=+>Ev+tSt|F~tR6ES@5KKkcqJ7nx{YJB_% zZ2X9yevO4>l4mUE1D=b4;7khXWKQl5T(p^VGcWfCzO}t9$iqRHw+1cS_OmE&587x4 zGW>%LV%d@r)*acFG1gt#>9d{gJ3NK$h}s8LNCkBWN~WO3<{hU2Uia|ihHOPjA`ZNL$-t89)6l4H>|>-Rss(f`-{6ziZoA5 zS{9=$J^FfD=4y9p@@$6#B?7k$K>a#b+Pr1Z#-4v4?|nC9zQGAhX*e>*%%v>KkK>P+vR{9e1XJ#C_C?}$SOt1I3H*x}-5z5NS~ip|j5 zV*v+-qb*i^$t%8gE*Lzk_{?2=mWyp&;YwTLCvP z0d;seYO}T2>MJ-+$Ex=t&6RvUH;a3FQ#C&By(;I>d#X&5X1ceRfO<2}GR*m#67t3N zRhhL#su8+V`?)gHQi6xaLD!y{>d|SErLvC4nMw*JM=~)^$ab(7M3GojBMga z7-#0rkgTvNlDhbWve!$s#RhMUa#EyP zNw|rF4KLl7P!^Nk!3MnRNJxtf32=v&QKI2fDq2|7L3uR8>qyfjbB3zZxt0OgChI!w z{YHCo)H>Y&;F7O!k2>iN_`k|&K`KAM5lssttM6?t#7*w=E@~SJ)Sbt|MeX4WoU*@j zW3VM>NiivR^|S;to*QlHvmDkQZKy5Qb$2t5ID_=4f%w+d&Rx1wKLk{NcFpi^UP_f| nn;M&7OPY1(qo{0r7U1xETrkhn4|EUfEiATdU{r=4qI>^8s>P2) literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/base/admin.py b/Login_signup_FE_UPDATED/base/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/Login_signup_FE_UPDATED/base/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/Login_signup_FE_UPDATED/base/apps.py b/Login_signup_FE_UPDATED/base/apps.py new file mode 100644 index 0000000..05011e8 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class BaseConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'base' diff --git a/Login_signup_FE_UPDATED/base/forms.py b/Login_signup_FE_UPDATED/base/forms.py new file mode 100644 index 0000000..155bf22 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/forms.py @@ -0,0 +1,49 @@ +from django.contrib.auth.forms import UserCreationForm +from django.contrib.auth.models import User + +class Signup(UserCreationForm): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.fields['username'].widget.attrs.update({ + 'required': '', + 'name':'username', + 'type' : 'text', + + 'placeholder' : 'JohnDoe', + 'maxlength' : '16', + 'minlength' : '4' , + 'id' : 'username' + }) + self.fields['email'].widget.attrs.update({ + 'required': '', + 'name':'email', + 'type' : 'email', + + 'placeholder' : 'JohnDoe@email.com', + 'id' : 'email' + }) + self.fields['password1'].widget.attrs.update({ + 'required': '', + 'name':'password1', + 'id' : 'password1', + 'type' : 'password', + + 'placeholder' : '********', + 'maxlength' : '22', + 'minlength' : '8' + }) + self.fields['password2'].widget.attrs.update({ + 'required': '', + 'name':'password2', + 'id' : 'password2', + 'type' : 'password', + + 'placeholder' : '********', + 'maxlength' : '22', + 'minlength' : '8' + }) + + class Meta: + model = User + fields = ['username', 'email', 'password1', 'password2'] + diff --git a/Login_signup_FE_UPDATED/base/migrations/__init__.py b/Login_signup_FE_UPDATED/base/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/Login_signup_FE_UPDATED/base/migrations/__pycache__/__init__.cpython-310.pyc b/Login_signup_FE_UPDATED/base/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e3b7a5c3b8fbc2927283fda283064cd9e631bbea GIT binary patch literal 164 zcmd1j<>g`k0&(LHNg(<$h(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6w=*(xTqIJKxa z#xXcFSRpjnH7LdHome +Register +Login + +{% endblock %} \ No newline at end of file diff --git a/Login_signup_FE_UPDATED/base/templates/Animation_lib/signin.html b/Login_signup_FE_UPDATED/base/templates/Animation_lib/signin.html new file mode 100644 index 0000000..3c07850 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/templates/Animation_lib/signin.html @@ -0,0 +1,102 @@ +{% extends 'main.html' %} + + +{% block content %} + +
+

Anima Lib

+
+ + +
+
+ {% csrf_token %} +
+

Welcome Back

+ +
+

+ +
+ +

+ +

+ +
+ +

+
+
+
+ + Forgot password? +
+
+ +
+ +
+ +
+ {% if messages %} +
    + {% for message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+ {% endif %} +
+ + + +
or continue with
+ + +

Continue as Guest

+
+
+
+{% endblock %} + + diff --git a/Login_signup_FE_UPDATED/base/templates/Animation_lib/signup.html b/Login_signup_FE_UPDATED/base/templates/Animation_lib/signup.html new file mode 100644 index 0000000..4782d39 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/templates/Animation_lib/signup.html @@ -0,0 +1,81 @@ +{% extends 'main.html' %} + + +{% block content %} + +
+

Anima Lib

+
+ +
+ {% csrf_token %} +
+

Get Started

+
+

+ +
+ {{form.username}} +

+ +

+ +
+ {{form.email}} +

+ +

+ +
+ {{form.password1}} +

+ +

+ +
+ {{form.password2}} +

+
+ +
+ +
+ {% if messages %} +
    + {% for message in messages %} +
  • {{ message }}
  • + {% endfor %} +
+ {% endif %} + +
or continue with
+ + +

Continue as Guest

+
+
+{% endblock %} diff --git a/Login_signup_FE_UPDATED/base/tests.py b/Login_signup_FE_UPDATED/base/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/Login_signup_FE_UPDATED/base/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/Login_signup_FE_UPDATED/base/urls.py b/Login_signup_FE_UPDATED/base/urls.py new file mode 100644 index 0000000..e5953f1 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/urls.py @@ -0,0 +1,9 @@ +from django.urls import path +from . import views + + +urlpatterns = [ + path('', views.home, name = 'home' ), + path('signup/', views.signupform, name = 'signup'), + path('signin/', views.signinform, name='signin') +] \ No newline at end of file diff --git a/Login_signup_FE_UPDATED/base/views.py b/Login_signup_FE_UPDATED/base/views.py new file mode 100644 index 0000000..6bc08c0 --- /dev/null +++ b/Login_signup_FE_UPDATED/base/views.py @@ -0,0 +1,63 @@ + +from django.shortcuts import render, redirect +from .forms import Signup +from django.contrib import messages +from django.contrib.auth import authenticate, login +from django.contrib.auth.models import User + +# Create your views here. + + +def home(request): + return render(request, 'Animation_lib/home.html') + +def signupform(request): + if request.method == 'POST': + form = Signup(request.POST) + + if form.is_valid(): + username = form.cleaned_data.get('username') + raw_password = form.cleaned_data.get('password1') + password = form.cleaned_data.get('password2') + + if password != raw_password: + messages.error(request, 'password do not match') + + else: + form.save() + new_user = authenticate(username = username, password = raw_password) + if new_user is not None: + + login(request, new_user) + return redirect('home') + else: + messages.error(request, 'Service TimedOut') + else: + messages.error(request, 'Check Your Details Carefully') + else: + form = Signup() + context = {'form' : form} + return render(request, 'Animation_lib/signup.html', context) + + +def signinform(request): + if request.method == 'POST': + email = request.POST.get('email') + password = request.POST.get('password') + username = User.objects.get(email = email.lower()).username + + try: + user = User.objects.get(username = username) + except: + messages.error(request, 'user is not recognised') + + user = authenticate(request, username = username, password = password) + + if user is not None: + login(request, user) + return redirect('home') + else: + messages.error(request, 'Wrong Password') + + context = {} + return render(request, 'Animation_lib/signin.html', context) diff --git a/Login_signup_FE_UPDATED/db.sqlite3 b/Login_signup_FE_UPDATED/db.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..390fa0643665e567b5807f3cb9dc9bf86ceda746 GIT binary patch literal 131072 zcmeI5X>23Ob;sExMT(Nh)@Vk{S{|MVS=^xo|_WrQ<+1}6DzHa@2?NgR7b*0U} zWcrTrC&ne}qlT|^a&*z~>iY()&Vv!ET9R`~=|rrQ_hOZjRE(vI`AVUr?8`~zFot%5 zUS41lOd?jv$%oD6S0`7)q4lt9BN|!R2)iQDsqnVT-E8#`r*79$v^A02b`5L zc+`n+NrJP`paY2??zcK$M&cLG6R&tey5lUzB;u)Hd)-$qq`Sr0!z9-dAhr8+x3g*r zQfGHAB)1{6F(#4ZIU&wyHK&D8f9LwsVyjijb53*NyrC-9;09%O$bpJxxS?otCW(Bm zEal3v@@YZBRfiqSLKePTEND$ul4bVZleUD1t&1=sRwWHGe5F{beIvHNmom4%C$2EmxSBa!ZG_oEEEiCM)f#Io^ zO4zEY#k9-Gy9 z>lXFKoknE!%Gc8Y(xvDW#8T-vUqm(XNGvAy#Ns`c3wY|)5>=9nSSrUd`LvvKyOLsA zD$7|(A1{|;r3$JTxRSbE@q9j`kHw+53()-YjOJdwcB8YT$Knj%q70-vEFEUh?OF^K z6tYM6H+WCI!C~vWy=T#Gt1}p+9{9ELRqB$~x|D{|5^8Hx@-0S}ss@Uex4kkW>RP7o z4b(f)$5i_*R_E>8RP~?IK>FMt9Np z$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%|Lc7pFwozmKSTdK9jC|XKF2>f{?PGpN6`^=j5-GF z|7HJM`|sIbx3Amp^!>2!Yki;Ydw>$a2M7QGAOHk_01yBIKmZ5;0U*#szpLHS|4{JeRB`TFAy_FJDw|h#lQ@`v`=S>Nz*|`Rh-JM|z zdeG53Lx(ks;cLiZ#NS0!so#xQJ}pRfWonoU2aa7u#_S7Ss=Ow1RboSe0VRQ|vnhe9 zRiD6f1tl03y0G9TYb;uC`bIdb=+_`4$}_55`URe)mCqu8hl z>Nctba{P=9+1z^0gf-L+un2N+uN%b<^G2dV`#gX4@a%6mCh@c%E79f`XD literal 0 HcmV?d00001 diff --git a/Login_signup_FE_UPDATED/manage.py b/Login_signup_FE_UPDATED/manage.py new file mode 100644 index 0000000..8de14ca --- /dev/null +++ b/Login_signup_FE_UPDATED/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Animation_lib.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/Login_signup_FE_UPDATED/requirements.txt b/Login_signup_FE_UPDATED/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..a69f01974a90e34b4bbbd3829eeb054a9d32a04f GIT binary patch literal 372 zcmYjNOAdlC6r8n*N5KGMWaG{Qc!fs5FH!+x@bK!)s}R$)$;*6SKW~Q)2b|ENM1>8{ z5({L!3Fer=;ej3vJaLcQ7zxo8@7fq!oXNV;rJ3~Ugcg5jggrSe6C)hy=TPv~Jm%)q z#pe32Q@4&SDsmlaPEYf>Ou7V0%uKoCHdmg8Ecwb)JEewt4Aw%)@*K!4jTbtP`Qr6> i{g9YyZ5{rk!<{P6F6tiCvE`2``mvfE + + + + + + + + + + + + AnimaX + + + {% include 'nav.html' %} + + {% block content %} + + {% endblock %} + + \ No newline at end of file diff --git a/Login_signup_FE_UPDATED/templates/nav.html b/Login_signup_FE_UPDATED/templates/nav.html new file mode 100644 index 0000000..4ca45e8 --- /dev/null +++ b/Login_signup_FE_UPDATED/templates/nav.html @@ -0,0 +1,7 @@ + \ No newline at end of file