~/talk

Writing Reusable Django Apps

Talkat DjangoCon AU 2014 · on Friday, 2014-08-01· [python, documentation]
slides:none on file

A reusable ratings app called django polarize gets built end to end: models use a generic foreign key and the AUTH_USER_MODEL string, migrations move from South hacks to Django 1.7’s migrations, tests run via a runtests.py harness and pass locally and on Travis CI build matrix (Python 2.7/3.4, Django 1.5/1.6/1.7 RC), packaged with setup.py and uploaded to PyPI — roughly half the work is app logic, half reusable-app plumbing, and the example works.

AI-written summary · about

  1. 0:00Writing Reusable Django Apps Jacob Haslehurst
  2. 1:04What are reusable apps?
  3. 1:15Solve one problem
  4. 1:30Reuse code between your own projects
  5. 1:43Share you work with others
  6. 1:54Reduce size of your Project
  7. 2:09Independently testable
  8. 2:21Examples of good reusable apps
  9. 2:31django-taggit
  10. 2:52django-imagekit
  11. 3:03python-social-auth
  12. 3:37django-generic-follow
  13. 3:59remote-fixtures
  14. 4:17Writing a ratings app
  15. 4:39Basic Setup
  16. 5:43Models & Migrations
  17. 7:09Testing
  18. 8:20How do we run our tests?
  19. 10:17Distribution
  20. 11:03$ ./setup.py register
  21. 11:19$ pip install django-polarize
  22. 11:32Documentation
  23. 11:57Installation
  24. 12:31App Refactor
  25. 13:36$ python manage.py makemigrations polarize
  26. 14:13Reusable apps have non-trivial overhead
  27. 14:42Benefits often win out
  28. 15:02Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.