Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Python Workshop the Edge - django
1. TEMPLATE
Django
Django and the Django logo are registered trademarks of Lawrence Journal-World.
2. •
•
•
{% for entry in entry_list %}
<div class=”entry”>
<h1>{{ entry.title|capfirst }}</h1>
<p>{{ entry.body }}</p>
</div>
{% endfor %}
Django and the Django logo are registered trademarks of Lawrence Journal-World.
3. •
•
•
BASE EX1 EX2
Django and the Django logo are registered trademarks of Lawrence Journal-World.
4. •
•
•
BASE EX1 EX2
Django and the Django logo are registered trademarks of Lawrence Journal-World.
5. O/R Mapper
Django
( MR )
Django and the Django logo are registered trademarks of Lawrence Journal-World.
6. •
•
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
7. from project.app.models import Model
list = Model.objects.filter(**kwargs)[:10]
obj1 = Model(**kwargs)
obj1.save() //
obj2 = Model.objects.get(pk=x)
obj2.y = z
obj2.save() //
Django and the Django logo are registered trademarks of Lawrence Journal-World.
8. •
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
9. FORM
Django
Django and the Django logo are registered trademarks of Lawrence Journal-World.
10. •
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
11. •
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
12. •
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
13. AJAX
Django
Django and the Django logo are registered trademarks of Lawrence Journal-World.
14. •
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
15. •
•
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
16. Django and the Django logo are registered trademarks of Lawrence Journal-World.
17. Django
Django and the Django logo are registered trademarks of Lawrence Journal-World.
18. •
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
19. •
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.
20. •
•
•
•
Django and the Django logo are registered trademarks of Lawrence Journal-World.