✏️ Fix typo
This commit is contained in:
parent
adf3fc9ca9
commit
52297d8ac3
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ def startproject(name: str):
|
||||||
def startapp(name: str, project: str):
|
def startapp(name: str, project: str):
|
||||||
"""Create a new app inside a project: templates go into <project_dir>/<name>/"""
|
"""Create a new app inside a project: templates go into <project_dir>/<name>/"""
|
||||||
target_dir = Path(project)
|
target_dir = Path(project)
|
||||||
target_dir.makedirs(exist_ok=True)
|
target_dir.mkdir(exist_ok=True)
|
||||||
render_template_dir("app", target_dir, {"project_name": target_dir.resolve().name, "app_name": name}, subdir_name=name)
|
render_template_dir("app", target_dir, {"project_name": target_dir.resolve().name, "app_name": name}, subdir_name=name)
|
||||||
print(f"✅ App '{name}' created in project '{target_dir}' successfully.")
|
print(f"✅ App '{name}' created in project '{target_dir}' successfully.")
|
||||||
print(f"🔧 Remember to add '{name}' to your INSTALLED_APPS!")
|
print(f"🔧 Remember to add '{name}' to your INSTALLED_APPS!")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue