irongit

A prebuilt stack for Django + Tailwind + Svelte

ready

huncholanehuncholaneauthored
parent 546f006commit d104074784124526b70a66b9933b3392fc7d644cBrowse files

2 files changed, +4 -2

+3-1create_secret_key.py → backend/create_secret_key.py
@@ -1,5 +1,7 @@
11 from django.core.management.utils import get_random_secret_key
2+import os
23
34
4-with open('backend/backend/secret_key.py', 'w') as f:
5+FILE = os.path.join(os.path.dirname(__file__), 'backend/secret_key.py')
6+with open(FILE, 'w') as f:
57 f.write(f"SECRET_KEY = '{get_random_secret_key()}'")
+1-1start.sh
@@ -1,5 +1,5 @@
11 #!/bin/bash
2-python create_secret_key.py
2+python backend/create_secret_key.py
33
44 cd frontend
55 npm run build