mirror of
https://framagit.org/la-chariotte/la-chariotte.git
synced 2025-05-05 13:21:49 +02:00
création de la page d'accueil
This commit is contained in:
parent
ddabc9afca
commit
288a8a1f65
19 changed files with 35 additions and 1 deletions
Binary file not shown.
Binary file not shown.
BIN
la_chariotte/__pycache__/views.cpython-310.pyc
Normal file
BIN
la_chariotte/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
0
la_chariotte/home/__init__.py
Normal file
0
la_chariotte/home/__init__.py
Normal file
BIN
la_chariotte/home/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
la_chariotte/home/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
la_chariotte/home/__pycache__/admin.cpython-310.pyc
Normal file
BIN
la_chariotte/home/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
la_chariotte/home/__pycache__/apps.cpython-310.pyc
Normal file
BIN
la_chariotte/home/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
la_chariotte/home/__pycache__/models.cpython-310.pyc
Normal file
BIN
la_chariotte/home/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
la_chariotte/home/__pycache__/views.cpython-310.pyc
Normal file
BIN
la_chariotte/home/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
3
la_chariotte/home/admin.py
Normal file
3
la_chariotte/home/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
la_chariotte/home/apps.py
Normal file
6
la_chariotte/home/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class HomeConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'la_chariotte.home'
|
0
la_chariotte/home/migrations/__init__.py
Normal file
0
la_chariotte/home/migrations/__init__.py
Normal file
Binary file not shown.
3
la_chariotte/home/models.py
Normal file
3
la_chariotte/home/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
10
la_chariotte/home/templates/home/home.html
Normal file
10
la_chariotte/home/templates/home/home.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>La Chariotte</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Chariotte</p>
|
||||
</body>
|
||||
</html>
|
3
la_chariotte/home/tests.py
Normal file
3
la_chariotte/home/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
5
la_chariotte/home/views.py
Normal file
5
la_chariotte/home/views.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from django.views.generic import TemplateView
|
||||
|
||||
class HomeView(TemplateView):
|
||||
"""Page d'accueil de la Chariotte"""
|
||||
template_name = "home/home.html"
|
|
@ -31,6 +31,7 @@ ALLOWED_HOSTS = []
|
|||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'la_chariotte.home',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
|
|
|
@ -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),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue