Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Django from scratch

145 views

Published on

Slides for Pycon APAC 2017 talk. Most of the actual content actually at https://www.gitbook.com/book/k4ml/mastering-django/details

Published in: Software
  • Be the first to comment

  • Be the first to like this

Django from scratch

  1. 1. Django From Scratch kamal@xoxzo.com
  2. 2. Tutorial https://k4ml.gitbooks.io/mastering-django/content/
  3. 3. What we’re doing at Xoxzo ? HTTP API for SMS and Voice Lot of Django
  4. 4. What we’re going to do ? Not building another Django.
  5. 5. Use Django in ‘slightly’ different way
  6. 6. Why I’m doing this ?
  7. 7. Fixing some misconception #1 Django doesn’t need installation
  8. 8. Digression Build python app from single module libraries:- CherryPy Bottle Peewee
  9. 9. Fixing some misconception #2 project vs app is not needed
  10. 10. Starting new Django project django-admin startproject pyconchat
  11. 11. More effective and productive when you know where all the stuff is.
  12. 12. Curiosity
  13. 13. Where is your Django ?
  14. 14. Where is your Django ?
  15. 15. Where is your Python ? /usr/bin/python /usr/bin/python3 /home/kamal/local/bin/python /home/kamal/chatery/bin/python3 C:python3python C:Program FilesPython3python ….
  16. 16. Thinking the program as something magical rather than something that you can control is what lead to frustration when learning new stuff.
  17. 17. What so hard about Django ? ● Context processor ● Middleware ● Forms ● Project vs App ● Django Rest Framework - serializers ● … ?
  18. 18. Warning ! This is not about best practices
  19. 19. The Basic Building Block
  20. 20. Minimal Django App.py
  21. 21. Minimal Django Urls.py
  22. 22. Question ? @k4ml https://k4ml.me/

×