✏️ Fix typo

This commit is contained in:
Brian Wiborg 2025-09-27 23:20:25 +02:00
parent adf3fc9ca9
commit 52297d8ac3
No known key found for this signature in database

View file

@ -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!")