Commit 471cef7c authored by Bonnegent Sebastien's avatar Bonnegent Sebastien
Browse files

cours 2 corrigé

parent b2e1b9c7
......@@ -115,7 +115,7 @@ def home(request):
### conf/urls.py
~~~python
from django.contrib import admin
from django.urls import path
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -252,6 +252,7 @@ from django.contrib.auth.decorators import login_required
### garage/views.py
~~~python
from django.views.generic import ListView
from .models import Garage
class GaragesListView(ListView):
model = Garage
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment