From d861edb57553f9b8bbcfe4e6d4ecef7e8053c91d Mon Sep 17 00:00:00 2001
From: Adam Drake <drakeadam02@gmail.com>
Date: Wed, 1 May 2024 19:12:24 +0100
Subject: [PATCH] Added button to get to new post page, and fixed new post page
 URL

---
 mlaas/__pycache__/__init__.cpython-310.pyc    | Bin 115 -> 115 bytes
 mlaas/__pycache__/settings.cpython-310.pyc    | Bin 2697 -> 2697 bytes
 mlaas/__pycache__/urls.cpython-310.pyc        | Bin 949 -> 949 bytes
 mlaas/__pycache__/wsgi.cpython-310.pyc        | Bin 514 -> 514 bytes
 .../__pycache__/__init__.cpython-310.pyc      | Bin 126 -> 126 bytes
 .../ai_engineer_auth.cpython-310.pyc          | Bin 1148 -> 1148 bytes
 .../__pycache__/autologout.cpython-310.pyc    | Bin 1021 -> 1021 bytes
 .../__pycache__/__init__.cpython-310.pyc      | Bin 128 -> 128 bytes
 .../__pycache__/admin.cpython-310.pyc         | Bin 974 -> 974 bytes
 .../__pycache__/apps.cpython-310.pyc          | Bin 430 -> 430 bytes
 .../__pycache__/forms.cpython-310.pyc         | Bin 1193 -> 1193 bytes
 .../__pycache__/models.cpython-310.pyc        | Bin 2171 -> 2171 bytes
 .../__pycache__/urls.cpython-310.pyc          | Bin 787 -> 787 bytes
 .../__pycache__/views.cpython-310.pyc         | Bin 6471 -> 6489 bytes
 .../__pycache__/0001_initial.cpython-310.pyc  | Bin 1612 -> 1612 bytes
 ...er_trained_models_and_more.cpython-310.pyc | Bin 661 -> 661 bytes
 .../__pycache__/0003_post.cpython-310.pyc     | Bin 1077 -> 1077 bytes
 ...004_alter_userprofile_role.cpython-310.pyc | Bin 660 -> 660 bytes
 ...post_id_delete_financeteam.cpython-310.pyc | Bin 663 -> 663 bytes
 .../__pycache__/0006_mlmodel.cpython-310.pyc  | Bin 787 -> 787 bytes
 .../0007_post_mlmodel.cpython-310.pyc         | Bin 692 -> 692 bytes
 .../0008_post_slug.cpython-310.pyc            | Bin 562 -> 562 bytes
 ...9_aiengineer_is_authorized.cpython-310.pyc | Bin 593 -> 593 bytes
 .../__pycache__/__init__.cpython-310.pyc      | Bin 139 -> 139 bytes
 .../templates/prediction_service/home.html    |  10 ++++++++++
 prediction_service/views.py                   |   4 ++--
 26 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/mlaas/__pycache__/__init__.cpython-310.pyc b/mlaas/__pycache__/__init__.cpython-310.pyc
index f2bc6cd3b7de33b9a46fc6e25fe8f36dd89d17e3..5f9f80acf89f24c86d2630c27ca57abd24f33742 100644
GIT binary patch
delta 17
YcmXRe=FaEk<zir9U@)pOn#i3203Fo>X8-^I

delta 17
YcmXRe=FaEk<zir9V2HC}o5-C3037!NDF6Tf

diff --git a/mlaas/__pycache__/settings.cpython-310.pyc b/mlaas/__pycache__/settings.cpython-310.pyc
index 471722be635a3fcca561a3256b3fb155806e55a1..808a682e145f50eb85610c1519b97d6f3228123c 100644
GIT binary patch
delta 20
bcmeAa?G)wC=jG*MU|?V{sxsQhUB?9gDTM?5

delta 20
bcmeAa?G)wC=jG*MU|?Vn+F`JfyN(M0Dh~u1

diff --git a/mlaas/__pycache__/urls.cpython-310.pyc b/mlaas/__pycache__/urls.cpython-310.pyc
index e5f9ca009c49a4556d1c9e37d287c929c155d0d2..d1901d71e5ab6b931fda5a92544cc0134df35512 100644
GIT binary patch
delta 20
bcmdnWzLlLjpO=@5fq{X+sLE&~_bO%pE@lK?

delta 20
bcmdnWzLlLjpO=@5fq{V`&W3Fx_bO%pElLC+

diff --git a/mlaas/__pycache__/wsgi.cpython-310.pyc b/mlaas/__pycache__/wsgi.cpython-310.pyc
index 41176ff0429c8db57acaf33be2c694d0db1997b7..db38895afcdeb1b87e1860f6c5e52cfbe3bfdd04 100644
GIT binary patch
delta 20
bcmZo-X=35d=jG*MU|?V{sxsQh{hbj2CjbOJ

delta 20
bcmZo-X=35d=jG*MU|?W~vtirF{hbj2CFBGD

diff --git a/mlaas/middleware/__pycache__/__init__.cpython-310.pyc b/mlaas/middleware/__pycache__/__init__.cpython-310.pyc
index a3c0930bc7e7604c0ee2b574c56129d8573497dc..bcbe742706f165151f7f033dc3481d34f0d83b4c 100644
GIT binary patch
delta 17
Ycmb=c<Id;h<zir9U@)pOn#f%Y03S;OhyVZp

delta 17
Ycmb=c<Id;h<zir9V2HC}o5)=Z03K}vN&o-=

diff --git a/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc b/mlaas/middleware/__pycache__/ai_engineer_auth.cpython-310.pyc
index a1366c37d9f748f5ce6c1aaf8ec1d9ecd4d7f2b0..8e8eca8dd83ab58ce1a5b19f41ada518b0cab366 100644
GIT binary patch
delta 20
bcmeyv@rQ#upO=@5fq{X+sLE&~cOeS^IHLr%

delta 20
bcmeyv@rQ#upO=@5fq{XcR+xPwcOeS^H*W-Q

diff --git a/mlaas/middleware/__pycache__/autologout.cpython-310.pyc b/mlaas/middleware/__pycache__/autologout.cpython-310.pyc
index fe3a529db247c22ba72c90304dc4d0a1a319315a..196236e92d012bf7c390d3ed49b859bb8bd7c743 100644
GIT binary patch
delta 20
bcmey%{+FFQpO=@5fq{X+sLE&~_a|lmIi>|R

delta 20
bcmey%{+FFQpO=@5fq{V`&W3Fx_a|lmIEn=L

diff --git a/prediction_service/__pycache__/__init__.cpython-310.pyc b/prediction_service/__pycache__/__init__.cpython-310.pyc
index 98ab6f8443d50cb07f8de13b08b76835829e582d..c94643b1202d4d4057431f19b2317d57848efd62 100644
GIT binary patch
delta 19
acmZo*Y+&Th=jG*MU|?X#sWO_#T?zmqj|0j8

delta 19
acmZo*Y+&Th=jG*MU|?W~vtgUaT?zmoRRdB0

diff --git a/prediction_service/__pycache__/admin.cpython-310.pyc b/prediction_service/__pycache__/admin.cpython-310.pyc
index 50aa0f37e655a4e3cbe61002b4008c38c3a1f044..3d0aa399fc21517c1e247f49738d44faa3cf2c1c 100644
GIT binary patch
delta 20
bcmX@devX|xpO=@5fq{V`r^;v}_hDuLGvoy0

delta 20
bcmX@devX|xpO=@5fq{Wx&T_Vm+=rO~HD(1A

diff --git a/prediction_service/__pycache__/apps.cpython-310.pyc b/prediction_service/__pycache__/apps.cpython-310.pyc
index dc785a10c849cda030cb6295d12ee08f10b1ca6d..e40330c1af2ec3385920d41c872e75c0c57939cd 100644
GIT binary patch
delta 20
bcmZ3-ypEYWpO=@5fq{V`r^;v}_hLo>E>Z+}

delta 20
bcmZ3-ypEYWpO=@5fq{V`&W3Fx_hLo>E1(1c

diff --git a/prediction_service/__pycache__/forms.cpython-310.pyc b/prediction_service/__pycache__/forms.cpython-310.pyc
index 15338057eaeb98dba0f97dd1b7e399d6fedff4f2..652e31d73c46f97533467bb7939be82466183871 100644
GIT binary patch
delta 20
bcmZ3<xssDRpO=@5fq{V`r^;v}_dFH=E@cFH

delta 20
bcmZ3<xssDRpO=@5fq{X+a*M%6?s+T#E>Z-3

diff --git a/prediction_service/__pycache__/models.cpython-310.pyc b/prediction_service/__pycache__/models.cpython-310.pyc
index 86d32afbfa6cf15951ac4193cb4f909a2bd01b05..fb33c32ae56b34b9ce9a294a115e9424d05195bd 100644
GIT binary patch
delta 20
bcmew@@LPa8pO=@5fq{V`r^;v}cL4_gJ2eFX

delta 20
bcmew@@LPa8pO=@5fq{Wx?{c<{+yxu}J)Q+q

diff --git a/prediction_service/__pycache__/urls.cpython-310.pyc b/prediction_service/__pycache__/urls.cpython-310.pyc
index 11ce276c42a965cebd7cffe1cd942b37a7a4da03..406367e661d8f47678e9558094ac176faa799321 100644
GIT binary patch
delta 20
bcmbQtHkpk(pO=@5fq{V`r^;v}HwQBSDTo8G

delta 20
bcmbQtHkpk(pO=@5fq{YH>=uKK+#JjRErA3{

diff --git a/prediction_service/__pycache__/views.cpython-310.pyc b/prediction_service/__pycache__/views.cpython-310.pyc
index 3dd69d56693576b8116aa70649eb826694a830d7..2e755bf083b35911ef1295762512091c0b587d84 100644
GIT binary patch
delta 51
zcmX?Zbkm40pO=@5fq{WxRjW}Nuk=Q~EKWw{$%X8~0?9?Gi6yD=1^LA#dKo3TIh(sU
H_woY(ZKV&V

delta 47
zcmca<bliw9pO=@5fq{X6WvfBjU#X3JS)4+GzCMnQ!Me#ssfi`2@df$CC7b7P?&Svn
DK9UZ(

diff --git a/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc b/prediction_service/migrations/__pycache__/0001_initial.cpython-310.pyc
index 3d7e589bea1e4c5f4665e8f7fed9ba86d9f9d76c..9aa0439f8eba863c159d8a535b9b9954d5858878 100644
GIT binary patch
delta 69
zcmX@ZbB2dIpO=@5fq{V`r^;v}cPcaEt<8nZYZ%##7#J9ej3z6yew5M%F<C(bL=et0
Jo~*|v2LK=84fFs2

delta 69
zcmX@ZbB2dIpO=@5fq{V`&W3FxcPcYu)aF9wHH>VA3=9lKhLe?9KT2tVn5-ZIA_!+0
JP1a+R0|4!d4D|p2

diff --git a/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc b/prediction_service/migrations/__pycache__/0002_remove_aiengineer_trained_models_and_more.cpython-310.pyc
index 71796b5bbf5d1fa2dc385e69b2c8dfbc7c04313e..5e419840ba17e246de8a82027a70aaceeee25484 100644
GIT binary patch
delta 20
bcmbQrI+c|>pO=@5fq{V`r^;v}cNY@?DzgML

delta 20
bcmbQrI+c|>pO=@5fq{V`&W3FxcNY@?C;<bz

diff --git a/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc b/prediction_service/migrations/__pycache__/0003_post.cpython-310.pyc
index 527c740512e04796a6216c293fb15cfa57b540f9..e3a6267611c5d63465d80b26fd07327deea0fc9f 100644
GIT binary patch
delta 20
bcmdnWv6X{6pO=@5fq{V`r^;v}w-yTkFChdQ

delta 20
bcmdnWv6X{6pO=@5fq{V`&W3Fxw-yTkEN=s&

diff --git a/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc b/prediction_service/migrations/__pycache__/0004_alter_userprofile_role.cpython-310.pyc
index 590d7bb4211668475f3af983e58ee1fa1a4460e7..fe6e8a2e38e9cf77f98402ffc57f0ad352d9e4f0 100644
GIT binary patch
delta 20
bcmbQjI)#-xpO=@5fq{V`r^;v}cPA47DvJa#

delta 20
bcmbQjI)#-xpO=@5fq{V`&W3FxcPA47C)oqI

diff --git a/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc b/prediction_service/migrations/__pycache__/0005_alter_post_id_delete_financeteam.cpython-310.pyc
index 3fa733d1455c149fc4ea64f02dca07a35a5a050a..a5b26f142235ea9facc86c8e169568620fad9ea2 100644
GIT binary patch
delta 58
zcmbQvI-Qj}pO=@5fq{V`r^;v}w=E-M)MQV_RyI)v28JTh$yXR>3P6}(K8O&TT+1W{
E096bNFaQ7m

delta 58
zcmbQvI-Qj}pO=@5fq{WxyF1%PZd*piTa!H*TiL`I7#NDgCSPHkDF9)D`5;1kaxIe-
E0A&6Pq5uE@

diff --git a/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc b/prediction_service/migrations/__pycache__/0006_mlmodel.cpython-310.pyc
index fe4ff51782739ce26b1bdb9ba0e9d8cc728cc0fe..bacd82fd32abafc4179758965f95db8e7a203c46 100644
GIT binary patch
delta 20
bcmbQtHkpk(pO=@5fq{V`r^;v}HwQBSDTo8G

delta 20
bcmbQtHkpk(pO=@5fq{V`&W3FxHwQBSCe{Nu

diff --git a/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc b/prediction_service/migrations/__pycache__/0007_post_mlmodel.cpython-310.pyc
index 0dfbab7d3237e0f7ad51c9c3774d13cf05af10d2..60e56c987d571c764790bf3e927f1fc2364666de 100644
GIT binary patch
delta 66
zcmdnOx`mZHpO=@5fq{V`r^;v|_Y1~b6Tf_5lVV_CD3Y4|igAjRD2T}dA|Qfrmh|Kq
GOfmo~)(+YL

delta 66
zcmdnOx`mZHpO=@5fq{V`&W3Fw_Y20TiC;djNir}n6iH5g#W+Pu1jJ+k5fDK*OKS2A
GCK&+x=ndNd

diff --git a/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc b/prediction_service/migrations/__pycache__/0008_post_slug.cpython-310.pyc
index 1a668ac7cfabcde2f9e436dd8234495a8e934406..269df00d15384796a285a6073ff7316546c3c935 100644
GIT binary patch
delta 78
zcmdnQvWbN|pO=@5fq{V`r^;v|_hrVYiT9VY2{SM-6bVo6VXV=DFu{BfA;Q4GaErqx
YH$SB`C)JLTfq|izg@J)VfJuxQ0JPu_kN^Mx

delta 78
zcmdnQvWbN|pO=@5fq{V`&W3Fw_hrUg6Yno)6JcOrC=!|6!&svQVS@P}LX?4l;TDHY
YZhlH>PO2Rv0|P@b3j+g#0FxLq0JQB7o&W#<

diff --git a/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc b/prediction_service/migrations/__pycache__/0009_aiengineer_is_authorized.cpython-310.pyc
index e847c26be1a72baa8ed5e9eba9cc5fa6cac72b88..32dead685fc5ed858048143e5f4290b3228bde7d 100644
GIT binary patch
delta 80
zcmcb}a*>5MpO=@5fq{V`r^+a8(L~;hj8PNsZ)X!`U|=W`o;-)KTMNPj^Ff3N0|Ub?
a4x8Nkl+v73J4OZuhGG^51_l8pF=hZ6GZ6;>

delta 80
zcmcb}a*>5MpO=@5fq{YH(sH)62@`oQGTxeae><B90|P^m$mBVU-C7VPm=7XE85kID
baoFVMr<CTT+A%UPFch;eFfa%(i7^8JP1F(M

diff --git a/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc b/prediction_service/migrations/__pycache__/__init__.cpython-310.pyc
index c50df215fb18cd49a18709f940ba83a0cf09e19d..530685db3e01649a821eceb29b96c5bbafbf48e4 100644
GIT binary patch
delta 19
acmeBX>}KT7=jG*MU|?X#sWO_#-2eb2CIjmL

delta 19
acmeBX>}KT7=jG*MU|?W~vtgUa-2ea~>;rQE

diff --git a/prediction_service/templates/prediction_service/home.html b/prediction_service/templates/prediction_service/home.html
index 295a48d..3f08283 100644
--- a/prediction_service/templates/prediction_service/home.html
+++ b/prediction_service/templates/prediction_service/home.html
@@ -20,8 +20,18 @@
                 </div>   
             {% endfor %}
         </div>
+
         
     </div>
+
+    <!-- Square plus button -->
+    <div style="position: fixed; bottom: 20px; right: 20px;">
+        <a href="{% url 'MLAAS-create_post' %}">
+            <button style="width: 50px; height: 50px; border-radius: 50%; background-color: #007bff; color: white; font-size: 24px; border: none;">+</button>
+        </a>
+    </div>
+
+    
     
 
 {% endblock content %}
\ No newline at end of file
diff --git a/prediction_service/views.py b/prediction_service/views.py
index 54f7e6a..31cb174 100644
--- a/prediction_service/views.py
+++ b/prediction_service/views.py
@@ -106,7 +106,7 @@ def create_post(request):
                 return redirect('MLAAS-home')  # Redirect to home or another appropriate page
     else:
         form = PostForm()
-    return render(request, 'MLAAS-create_post', {'form': form})
+    return render(request, 'prediction_service/create_post.html', {'form': form})
 
 import os
 import io 
@@ -166,4 +166,4 @@ def mlmodel(request, pk):
     layercount = str(mlmodel.layers)
 
     return render(request, "prediction_service/model.html", {'img_str': img_str,
-                                                             'layer': layercount,})
+                                                             'layer': layercount,})
\ No newline at end of file
-- 
GitLab