From 288a8a1f658ecdaf85dfbbbe282f14efdb10b94a Mon Sep 17 00:00:00 2001 From: Laetitia Getti Date: Fri, 17 Mar 2023 17:04:19 +0100 Subject: [PATCH] =?UTF-8?q?cr=C3=A9ation=20de=20la=20page=20d'accueil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__pycache__/settings.cpython-310.pyc | Bin 2317 -> 2323 bytes la_chariotte/__pycache__/urls.cpython-310.pyc | Bin 958 -> 1056 bytes .../__pycache__/views.cpython-310.pyc | Bin 0 -> 379 bytes la_chariotte/home/__init__.py | 0 .../home/__pycache__/__init__.cpython-310.pyc | Bin 0 -> 168 bytes .../home/__pycache__/admin.cpython-310.pyc | Bin 0 -> 209 bytes .../home/__pycache__/apps.cpython-310.pyc | Bin 0 -> 456 bytes .../home/__pycache__/models.cpython-310.pyc | Bin 0 -> 206 bytes .../home/__pycache__/views.cpython-310.pyc | Bin 0 -> 463 bytes la_chariotte/home/admin.py | 3 +++ la_chariotte/home/apps.py | 6 ++++++ la_chariotte/home/migrations/__init__.py | 0 .../__pycache__/__init__.cpython-310.pyc | Bin 0 -> 179 bytes la_chariotte/home/models.py | 3 +++ la_chariotte/home/templates/home/home.html | 10 ++++++++++ la_chariotte/home/tests.py | 3 +++ la_chariotte/home/views.py | 5 +++++ la_chariotte/settings.py | 1 + la_chariotte/urls.py | 5 ++++- 19 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 la_chariotte/__pycache__/views.cpython-310.pyc create mode 100644 la_chariotte/home/__init__.py create mode 100644 la_chariotte/home/__pycache__/__init__.cpython-310.pyc create mode 100644 la_chariotte/home/__pycache__/admin.cpython-310.pyc create mode 100644 la_chariotte/home/__pycache__/apps.cpython-310.pyc create mode 100644 la_chariotte/home/__pycache__/models.cpython-310.pyc create mode 100644 la_chariotte/home/__pycache__/views.cpython-310.pyc create mode 100644 la_chariotte/home/admin.py create mode 100644 la_chariotte/home/apps.py create mode 100644 la_chariotte/home/migrations/__init__.py create mode 100644 la_chariotte/home/migrations/__pycache__/__init__.cpython-310.pyc create mode 100644 la_chariotte/home/models.py create mode 100644 la_chariotte/home/templates/home/home.html create mode 100644 la_chariotte/home/tests.py create mode 100644 la_chariotte/home/views.py diff --git a/la_chariotte/__pycache__/settings.cpython-310.pyc b/la_chariotte/__pycache__/settings.cpython-310.pyc index 3bb05081d4a347abfdbc0e5cc7313c13843131ac..b5720f3ce83fad35eeedaed9c83320f078d22a49 100644 GIT binary patch delta 64 zcmeAbnk>Yd&&$ij00f-&f#ttQa{b-{i0Y01d1R Aga7~l diff --git a/la_chariotte/__pycache__/urls.cpython-310.pyc b/la_chariotte/__pycache__/urls.cpython-310.pyc index 9e4d834b52abfb83d5004abc9e9537fafcfe2354..d6003c3bed854368615704b497e668977eaa412d 100644 GIT binary patch delta 254 zcmdnTzJNnJpO=@50SG4aiKKWkGcY^`agYHkkmCTv#X%FbWvy~qqgWXkQdm-0bJ%j( zqu3c4Qdv^iQrWXO7H}?PNMTRm=w$|qaHcY4ab>{@uYACGiY*eOz32?WV*#t zkXVv&i#;)k#Q*tx&^!+q> zC;w(LP%2^psxIOH5o|!>7KaB=aTrkNE%wCXc#sj3wV7qOg+K~G#4o4GLCn^ZXEBQj V@d3Fk3_Sb-j66(2%sh-7{{TA4Iv@Z5 delta 166 zcmZ3$v5#FlpO=@50SNY;V@&zP#K7Phkya&}7@#)X5~oc#EYVu_U94EiolGGf&@7lVh?Avw`|8mg3Bk)LSg2MLET{ txPc^4QAui1UhztXB9Pr+;+OyAz0B5=Uo$K7fy7uCc=&l3d6+r=0|1#VCpG{8 diff --git a/la_chariotte/__pycache__/views.cpython-310.pyc b/la_chariotte/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c245c8d632c37970646e3467b04d32f8ab242375 GIT binary patch literal 379 zcmY*Uy-veG48FVkv}#j{fk$A;lDq&yNM&HE5Nugcl(R^xTrS)>AP^f!3_M9+DJv7N zfP_>#>QFw(_Gh2Z{%lvPg&_QWo$61D-<%vnQF2M<&&X+^Wh;ym84r`X9ccF<{XsT`AQ#Qqk1Z#xf_U1Jg9fAZA8 zv(NgMG2}H7i{LE_>E;wRX*8bbZP`88%-7aoHK2DacU&IIH67+cs!SgyK}T-Jt@CqZ Q_0Ylv-|AU%A`+FTJ?q<86951J literal 0 HcmV?d00001 diff --git a/la_chariotte/home/__init__.py b/la_chariotte/home/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/la_chariotte/home/__pycache__/__init__.cpython-310.pyc b/la_chariotte/home/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a5bc3a4f8a0e9ba43de9e28218036fb6363dae16 GIT binary patch literal 168 zcmd1j<>g`kf_*(ADIoeWh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o6vTKO;XkRX-;& zwIs77Gg03qKe;qFHLs*tKcFZ-D-}rRB*rIaBo<}nmz03iA#uPug`kf_*(ADfU46F^Gc(44TX@fuanW zjJH@5Q*tx&{4|+v@ug%X=B4NBCFkdr6lEqAfecv5P{abHz{D>P{fzwFRQ;U9)RN4S z%tU>c{N&Qy)Vz{n{eYtUtW+SKlNg_zkyw+?BtL*q3y3mRNNiaw({s~QP8?!qpeyXmd;-7ZwG+R< z#JR0RImz#Q=X=lRvmTFQf|h(F@QHrwgJTOZnBX#(2ta@;QqzJ`G9wTGdndpoePcxc z;S)&*-&jRb>W0&{z17XKDi=O;Y!rhDE|VZgQcxhsrUiqb2!WwW=;8-m%RPT{0c+8e zI)mq|)*zM1ZmM$HTYXCtMXxLuD8`pw&4vE#i*!TmZ3jQI+-v4aNL$%Tg`kf_*(ADV9L`F^Gc(44TX@fuanW zjJMcw^HWlDiv2X1ZgHk$CFZ5)>!lR{1QMO9N+5YTEZBhbYz%?_x;GEqs2q1iA5F&pG zivXfqmJPnBieF~b9C*_le!YP=NHVFZ;f&-%gya*vEA_!?v)WtJv`tI%7 zLM}0dbE#B|rA`4;Ez_%&tV`=0ZckTKnR}S5oYC`a(8WSj(x4FCPzYn8)!rWo@z6@W ze>oNctfKVT?YZ_nAFMthRy};r`mwo|=t@`0{MxG4VC9;8QQI|=)l#TmCjWz;)g!In zOg7JTNHe`QM+7m8c+C6UJPW%7*0NgK$*y>b71pJy1JA;@{PEd&{$O2vv0LlX|7GK^ IG-65c0|ZiaC;$Ke literal 0 HcmV?d00001 diff --git a/la_chariotte/home/admin.py b/la_chariotte/home/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/la_chariotte/home/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/la_chariotte/home/apps.py b/la_chariotte/home/apps.py new file mode 100644 index 0000000..306a748 --- /dev/null +++ b/la_chariotte/home/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class HomeConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'la_chariotte.home' diff --git a/la_chariotte/home/migrations/__init__.py b/la_chariotte/home/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/la_chariotte/home/migrations/__pycache__/__init__.cpython-310.pyc b/la_chariotte/home/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a8428d604e2720d7e11d2028dc22e2f5d872141b GIT binary patch literal 179 zcmd1j<>g`kf_*(ADIoeWh(HF6K#l_t7qb9~6oz01O-8?!3`HPe1o10OKO;XkRX-;& zwIs77Gg03qKe;qFHLs*tKcFZ-D-}rRB*rIaBo<}nmz03iA#uPub2HP65=%1k^NRK3 g<1_OzOXB183My}L*yQG?l;)(`f$S@00un3?06rHk4*&oF literal 0 HcmV?d00001 diff --git a/la_chariotte/home/models.py b/la_chariotte/home/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/la_chariotte/home/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/la_chariotte/home/templates/home/home.html b/la_chariotte/home/templates/home/home.html new file mode 100644 index 0000000..e43108d --- /dev/null +++ b/la_chariotte/home/templates/home/home.html @@ -0,0 +1,10 @@ + + + + + La Chariotte + + +

Chariotte

+ + diff --git a/la_chariotte/home/tests.py b/la_chariotte/home/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/la_chariotte/home/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/la_chariotte/home/views.py b/la_chariotte/home/views.py new file mode 100644 index 0000000..48e2a46 --- /dev/null +++ b/la_chariotte/home/views.py @@ -0,0 +1,5 @@ +from django.views.generic import TemplateView + +class HomeView(TemplateView): + """Page d'accueil de la Chariotte""" + template_name = "home/home.html" diff --git a/la_chariotte/settings.py b/la_chariotte/settings.py index 68ea23d..eb6c02d 100644 --- a/la_chariotte/settings.py +++ b/la_chariotte/settings.py @@ -31,6 +31,7 @@ ALLOWED_HOSTS = [] # Application definition INSTALLED_APPS = [ + 'la_chariotte.home', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', diff --git a/la_chariotte/urls.py b/la_chariotte/urls.py index 1da3016..00bf61a 100644 --- a/la_chariotte/urls.py +++ b/la_chariotte/urls.py @@ -14,8 +14,11 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path +from django.urls import path, include + +from .home import views urlpatterns = [ + path('', views.HomeView.as_view(), name="home"), path('admin/', admin.site.urls), ]