Skip to content

Commit

Permalink
QuickFIX path from the .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
huogerac committed Oct 29, 2024
1 parent f661bb7 commit f9d43e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def remove_package_files():
os.unlink(path)


def create_env_file(project_name):
def create_env_file():
print(INFO + " - 💡 Creating .env File" + TERMINATOR)

src_file = Path(f"{project_name}/.env.example")
dst_file = Path(f"{project_name}/.env")
src_file = Path(".env.example")
dst_file = Path(".env")

shutil.copy(src_file, dst_file)

Expand Down Expand Up @@ -133,7 +133,7 @@ def main():

remove_package_files()

create_env_file("{{ cookiecutter.project_slug }}")
create_env_file()

print(SUCCESS + "🐍 Your Django API backend is created! (root) ✨ 🍰 ✨\n\n" + HINT)
print(
Expand Down

0 comments on commit f9d43e9

Please sign in to comment.