書名: 深入理解Django:框架內幕與實現原理作者名: 沈聰 全樹強編著本章字數: 92字更新時間: 2022-05-06 12:23:57
2.1.3 get_commands()函數
這個函數比較簡單,與find_commands()函數相比,僅在結果上做了微小改動:


繼續在Python交互模式下調用該函數,輸出結果如下:

對于startproject命令而言,在調用load_command_class()函數得到Command對象時,第1個參數(django.core)就是從這里獲得的。
推薦閱讀
- DBA攻堅指南:左手Oracle,右手MySQL
- 機械工程師Python編程:入門、實戰與進階
- 快速念咒:MySQL入門指南與進階實戰
- Unreal Engine 4 Shaders and Effects Cookbook
- Django 3.0入門與實踐
- App Inventor 2 Essentials
- iOS開發項目化入門教程
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- H5+移動營銷設計寶典
- Puppet:Mastering Infrastructure Automation
- Laravel Design Patterns and Best Practices
- Python數據預處理技術與實踐
- Design Patterns and Best Practices in Java
- Visual C++程序設計全程指南
- Mathematica Data Visualization