Learning Web Development with Django - Guestbook
13
Add the guestbook to every post 4/18/2015
-
Upload
hsuan-wen-liu -
Category
Technology
-
view
605 -
download
0
Transcript of Learning Web Development with Django - Guestbook
![Page 1: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/1.jpg)
Add the guestbook to every post
4/18/2015
![Page 2: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/2.jpg)
Workflow
Models
Forms
Views
Templates
![Page 3: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/3.jpg)
mysite —— mysite —— __init__.py | |— local_settings.py | |— settings.py | |— urls.py | |— wsgi.py |— template —— home.py | |— post.html | |— msg_add.html | |— msg_post.html |— trips —— __init__.py | |— admin.py | |— forms.py | |— models.py | |— tests.py | |— views.py
— modified— add
![Page 4: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/4.jpg)
/ trips/ models.py
![Page 6: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/6.jpg)
/ trips/ forms.py
![Page 7: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/7.jpg)
/ templates/ msg_add.html
/ templates/ post.html
![Page 8: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/8.jpg)
![Page 9: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/9.jpg)
/ templates/ msg_post.html
/ templates/ post.html
![Page 10: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/10.jpg)
![Page 11: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/11.jpg)
/ trips/ Views
![Page 12: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/12.jpg)
CSRF (Cross Site Request Forgery)
![Page 13: Learning Web Development with Django - Guestbook](https://reader034.fdocuments.in/reader034/viewer/2022042618/58887c0b1a28ab34788b6697/html5/thumbnails/13.jpg)
HsuanWen Liu
“Thank you.”