1. make appwhat data comes in that blog is real- blog post migrate : db changed . runs them class Post(models.model):which means we're writing a python class that inherits everything from the Django models.modelsame thing is from django.db.models import Modelclass Post(Model): - model.py
1. create create_method 2. create new forms.py file 3. import form into the views.py 4. register url for create view 5. create.htmlform.as_p (????) 6. post method 7. 8. better methodform.save(commit=False) 는 여기서 ModalForm을 사용하기 때문이다 . 9. insert into the db 10. directly go to the detail view when creating new item 11. message handling 12. detail_view.html 13. views.py 14. completed create_view.py..
1. create method about Detail View 2. mapping urls 3. add list 4. detail_view.html 5. how to handle errorsa. add the modules b. use reserved method c. using try catch d. condition clause 6. variable id mapping on url 7. id=None 8. html 9. flexible html
views we looked at the request see the user associated request1. display user and check authenticated on web page 'request.user' shows who the user is when logout, annoymousUser2. redirect to the different sites by authentication decorator : I can instead having a template that is been shown or raising something like 404 errorimport 3. how to specify logics by authenticationa. when you want to o..