On second thought, these 5 lines should be factored out to a utility "make_package_dir" or something. Should perhaps be shared with startproject and startapp; I can certainly imagine other cases of a command that needs to create a package.