Class based-views

379 views

Published on

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
379
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Tips:The New Slide button is on the Standard toolbar.You can also click Insert>New Slide.
  • Tips:If you don’t see the Elements Gallery, click View>Elements Gallery.To see a description of a slide layout in the Elements Gallery, rest the pointer over the layout thumbnail.Placeholder buttons indicate the type of object that you can add, for example, a picture, table, or chart.
  • Tips:If you don’t see the Elements Gallery, click View>Elements Gallery.To see a description of a slide layout in the Elements Gallery, rest the pointer over the layout thumbnail.Placeholder buttons indicate the type of object that you can add, for example, a picture, table, or chart.
  • Tips:If you don’t see the Elements Gallery, click View>Elements Gallery.To see a description of a slide layout in the Elements Gallery, rest the pointer over the layout thumbnail.Placeholder buttons indicate the type of object that you can add, for example, a picture, table, or chart.
  • Tips:If you don’t see the Formatting Palette, click View>Formatting Palette.To make changes to the picture, you first have to select the picture.
  • Class based-views

    1. 1. My First Class-based view<br />Rob Combs<br />09/30/2011<br />Technology Dept.<br />
    2. 2. Typical DjangoView<br />def detail_view(request,…)<br /> #Some logic <br /> return HttpResponse(…)<br />
    3. 3. >>> from django.test.client import Client<br />>>> c = Client()<br />>>> response = c.get('/customer/details/’)<br />
    4. 4.
    5. 5.
    6. 6. Class-based Views<br />
    7. 7. Request<br />View Logic<br />Context<br />Response<br />
    8. 8. References<br /><ul><li>Code Review
    9. 9. Jira ticket WD-168 -> MedleyBaseView
    10. 10. Django docs Generic Class-based views</li>

    ×