From f754b02d91037e9d9ef69b901207ec6dd2b63664 Mon Sep 17 00:00:00 2001 From: Phuoc CAO Date: Thu, 21 Apr 2022 14:48:17 +0200 Subject: [PATCH] version 0.1 --- README.md | 40 +++++++------------------ README.txt | 43 --------------------------- cao_blogr.sqlite | Bin 28672 -> 28672 bytes cao_blogr/templates/blog_edit.jinja2 | 2 ++ cao_blogr/templates/layout.jinja2 | 16 +++++----- setup.py | 4 +-- 6 files changed, 23 insertions(+), 82 deletions(-) delete mode 100644 README.txt diff --git a/README.md b/README.md index dd66181..a03dfb0 100644 --- a/README.md +++ b/README.md @@ -1,61 +1,43 @@ # README # -This README would normally document whatever steps are necessary to get your application up and running. +**cao_blogr** is mini app for blogging developed with the Pyramid framework -### What is this repository for? ### - -* Quick summary -* Version -* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo) - -### How do I get set up? ### +## How do I get set up? ## - Change directory into your newly created Pyramid project. - cd cao_blogr + ` cd cao_blogr ` - Create a Python virtual environment. - python3 -m venv env + `python3 -m venv env ` - Upgrade packaging tools. - env/bin/pip install --upgrade pip setuptools + `env/bin/pip install --upgrade pip setuptools ` - Install the project in editable mode with its testing requirements. - env/bin/pip install -e ".[testing]" + ` env/bin/pip install -e ".[testing]" ` - Initialize and upgrade the database using Alembic. - Generate your first revision. - env/bin/alembic -c development.ini revision --autogenerate -m "init" + `env/bin/alembic -c development.ini revision --autogenerate -m "init" ` - Upgrade to that revision. - env/bin/alembic -c development.ini upgrade head + `env/bin/alembic -c development.ini upgrade head ` - Load default data into the database using a script. - env/bin/initialize_cao_blogr_db development.ini + ` env/bin/initialize_cao_blogr_db development.ini ` - Run your project's tests. - env/bin/pytest + ` env/bin/pytest ` - Run your project. - env/bin/pserve development.ini - - -### Contribution guidelines ### - -* Writing tests -* Code review -* Other guidelines - -### Who do I talk to? ### - -* Repo owner or admin -* Other community or team contact \ No newline at end of file + `env/bin/pserve development.ini ` \ No newline at end of file diff --git a/README.txt b/README.txt deleted file mode 100644 index 99bb47a..0000000 --- a/README.txt +++ /dev/null @@ -1,43 +0,0 @@ -cao_blogr -========= - -Getting Started ---------------- - -- Change directory into your newly created project. - - cd cao_blogr - -- Create a Python virtual environment. - - python3 -m venv env - -- Upgrade packaging tools. - - env/bin/pip install --upgrade pip setuptools - -- Install the project in editable mode with its testing requirements. - - env/bin/pip install -e ".[testing]" - -- Initialize and upgrade the database using Alembic. - - - Generate your first revision. - - env/bin/alembic -c development.ini revision --autogenerate -m "init" - - - Upgrade to that revision. - - env/bin/alembic -c development.ini upgrade head - -- Load default data into the database using a script. - - env/bin/initialize_cao_blogr_db development.ini - -- Run your project's tests. - - env/bin/pytest - -- Run your project. - - env/bin/pserve development.ini diff --git a/cao_blogr.sqlite b/cao_blogr.sqlite index b34b3290881ccf2d8b5e25bef12bb6b67e7dbb16..440ef949e51c6e5799c0f67b1b2d6b325c77ad7c 100644 GIT binary patch delta 1250 zcmchWQESss6vvxU9qVX2H(HhT;grJ4s`kz#?Q9n_iVjw=I0eBMFhG7~|wQZ6_%($ zb6*1Km-m=K(^54i>cS*dm%2x@+`OlXpy_z^FID9Q1!^kzV*(2KCh&2^?zp;T3UI9f zEo`=cy$bmwtZ)iRidSc7P!V@%0AidxDMlFhF78qAF_$8Db4dp59O?taf*-jO4I=q9 z7RdSZqQW*syM~GAVVKS@!|_a(Ne22Te!7XB7WSsJflW8d##kZGH&-HJQ4or2`K%y_ z*Lj{CuP3@v({(IUll`BP(2)G!6_AiEheDFh%j_1M?XiStf~F71uN!wROEpWy^0>1S z>LXGv$S}xG@YpMQU*OLVikRE89{yc;G{Q0J`@*@wrcaB{yu{Fdf6e-aFiIgG_ck7S oIGP_}T}qN|X>oaQxZi<(gFF?wbOoKsPwddJp4s;G-A#l43t@+nUjP6A delta 1138 zcmaKq-%b-j6vi!4BNd3o3nL;NSt5TTEG=zm>2`_17)&$*CSXEPw!1@j((cYWJ6lqX zDf$GOli-Ek7~_SBH^jH#!gy)o4G%yxyn(Z&&{DunW@qQ@oNvy2=eMyF+1QD^y&f5S z*E16t+*R{twjqG}AZ+>K#A7}cj8|Zd@o7*L zr8C+Y9fA3Pnnmyf$1!*%3@j4vQ|5-B%MXabU3h5lqQ%zTl_6UQ&!1A&JQexCED|xs zctI6`)TKtrSEWX6r$rn#d@ejd!OO{Re3Q6})y!~r7y7K_NC^~OAVZ_r^K>x{E?c#PuaUTJE_W9!4H!i z_;vCQ?#lIz^kA1vm({welqJ5v#dIIKx!!81Ad6EJm|?EqG#?0gXD9^JA|>h)zhTf4 zr-Hf#2=o2Wl^JFc>1Uae^>Fz}*n~G_9tbbl3@irsK^UbX2-f8JLQ-}Eq@yyCaWE{0 z*8JX=GMVE9E)|vVpCE<PRG~#$#iN*mydT!tHbqK91W}P4)C>RI?}a zrT;WtQ{@J^EhyF m_9H+wTyDau5p0F)&_HtF;4#cvk6Sp-TC4u4#C?CCqw#+q5qC@g diff --git a/cao_blogr/templates/blog_edit.jinja2 b/cao_blogr/templates/blog_edit.jinja2 index 17e6d30..c0aabcb 100644 --- a/cao_blogr/templates/blog_edit.jinja2 +++ b/cao_blogr/templates/blog_edit.jinja2 @@ -35,6 +35,7 @@ {{ form.tag(class_='form-control') }} +
Retour
+

Apprendre la syntaxe de Markdown

diff --git a/cao_blogr/templates/layout.jinja2 b/cao_blogr/templates/layout.jinja2 index 490ef9b..d157952 100644 --- a/cao_blogr/templates/layout.jinja2 +++ b/cao_blogr/templates/layout.jinja2 @@ -10,7 +10,7 @@ {{page_title}} - + @@ -37,7 +37,6 @@