Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bonnegent Sebastien
cours_django
Commits
471cef7c
Commit
471cef7c
authored
Nov 14, 2018
by
Bonnegent Sebastien
Browse files
cours 2 corrigé
parent
b2e1b9c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
cours_02.md
View file @
471cef7c
...
...
@@ -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
...
...
pdf/02.pdf
View file @
471cef7c
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment