diff --git a/djinit/services/files.py b/djinit/services/files.py index c46eea6..34f3a3d 100644 --- a/djinit/services/files.py +++ b/djinit/services/files.py @@ -104,8 +104,8 @@ class FileManager: files = [ ("urls.py", "config/urls/with_api.j2", urls_context), - ("wsgi.py", "config/wsgi.j2", {}), - ("asgi.py", "config/asgi.j2", {}), + ("wsgi.py", "config/wsgi.j2", {"project_name": prefix}), + ("asgi.py", "config/asgi.j2", {"project_name": prefix}), ] for filename, template, context in files: diff --git a/djinit/utils/django.py b/djinit/utils/django.py index 519d8a0..29ff7b9 100644 --- a/djinit/utils/django.py +++ b/djinit/utils/django.py @@ -24,7 +24,7 @@ class DjangoHelper: os.makedirs(directory, exist_ok=True) manage_py_path = os.path.join(directory, "manage.py") - create_file_from_template(manage_py_path, "project/manage_py.j2", {}, "Created manage.py") + create_file_from_template(manage_py_path, "project/manage_py.j2", {"project_name": project_name}, "Created manage.py") os.chmod(manage_py_path, 0o755) if unified: