~/talk

Packaging Django projects for PyPI

Talkat DjangoVillage 2015 · 2015-04-17..04-19· [python]
links:none on file
slides:none on file

Shows how to make a Django project pip-installable by turning the project into a Python package: namespace apps into a module and convert settings into a namespace settings module with a base + local pattern. Adds an initial_setup command that auto-generates a compliant secret key, creates a local settings file, runs migrations and creates a random-admin account (with a nag until password change). Extracts secret-key logic into a reusable util (ticket 45-28) and publishes django-auto-admin; demo installs and runs with ~98% functionality after two commands.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:25Django project packaging challenges
  3. 4:54Flat project structure issues
  4. 6:00Settings file orchestration problems
  5. 7:03Namespace settings solution
  6. 9:12Secret key generation pitfalls
  7. 11:21Simplifying installation steps
  8. 13:30Avoiding secret key commits
  9. 14:57Local settings fallback logic
  10. 17:08Database migration automation
  11. 19:20Admin user security risks
  12. 20:47Random password generation
  13. 21:51Password change enforcement
  14. 22:38Deployment directory handling
  15. 24:49Media file publishing prevention
  16. 25:55Management command shortcuts
  17. 27:20Onboarding help messages
  18. 28:46Path length and virtualenv issues
  19. 29:29Start project command alternative
  20. 30:39One-command installation demo
  21. 33:28Q&A on secret key storage
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.