From bdc8451f223aa74d1668e40cd45c0a146d1e20c2 Mon Sep 17 00:00:00 2001 From: surya Date: Wed, 17 Jul 2024 05:43:05 +0530 Subject: [PATCH] Added the Post Button when Staff Added the ability to post directly from the navbar when logged in as a staff member `User.is_staff == True` --- blog/__pycache__/urls.cpython-310.pyc | Bin 525 -> 524 bytes blog/urls.py | 2 +- db.sqlite3 | Bin 155648 -> 155648 bytes templates/base.html | 5 +++++ templates/blog/blogCreate.html | 2 +- templates/blog/blogDetail.html | 2 +- 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/blog/__pycache__/urls.cpython-310.pyc b/blog/__pycache__/urls.cpython-310.pyc index 304c8470b67f321771bc83c88467ca7f8f8207e3..678c39db5db62da8053c12de52127d42c1ba3e6e 100644 GIT binary patch delta 32 mcmeBW>0#l`=jG*M0D?PQ)6-^71E-~=jG*M0D`L7)6!;5Om+?OUkednB diff --git a/blog/urls.py b/blog/urls.py index f8e79f1..0f0fa69 100644 --- a/blog/urls.py +++ b/blog/urls.py @@ -5,7 +5,7 @@ urlpatterns = [ path('', views.home, name='Home'), path('news/', views.news, name='News'), path('blog/', views.BlogDetailView.as_view(), name='Blog'), - path('blog/create/', views.BlogCreateView.as_view(), name='Blog Create'), + path('blog/create/', views.BlogCreateView.as_view(), name='BlogCreate'), path('dev/', views.dev, name='Dev'), path('dev/support/', views.support, name='Support'), ] diff --git a/db.sqlite3 b/db.sqlite3 index abd0cd64db24d09bc98dd2ea2e5ca375229a8d41..864b0884ac9503202502e1542fcdffdc7ca0a968 100644 GIT binary patch delta 219 zcmZoTz}awsbAmLZ-b5K^M!k&*OXP*v`HL9%U-Dn!FXG?N-_1XZf8%Dsf*AhEMf#Q^ zoE(XzB^f;2%<`N`Ir-`FAfkD{{`UR)jII~h82J}5@GkhHZm|W(KRsF zH8fK&G_x`^wK6i*votU>HZb3GfJFdk-5&=2Kbr*`-t%)XFfcGPb8>QRX57H6u$iUd G4?h5Wk3xh1 delta 95 zcmV-l0HFVXzzKlB36L8BEs-2U0WGm$q#qIn4{`tx=?~Noau2@`iw~L)c(W03To03S zFF6z!2w`<}XkTz;a&2jIb7^mG0001kzc07HF9Ai+qXe)ZvjpJ$AF{v%5VHh;{14yn BA)x>O diff --git a/templates/base.html b/templates/base.html index 9011aef..7cae3b3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -29,6 +29,11 @@