A prebuilt stack for Django + Tailwind + Svelte
ready
2 files changed, +4 -2
+3-1create_secret_key.py → backend/create_secret_key.py
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | from django.core.management.utils import get_random_secret_key |
| 2 | +import os | |
| 2 | 3 | |
| 3 | 4 | |
| 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: | |
| 5 | 7 | f.write(f"SECRET_KEY = '{get_random_secret_key()}'") |
+1-1start.sh
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | -python create_secret_key.py | |
| 2 | +python backend/create_secret_key.py | |
| 3 | 3 | |
| 4 | 4 | cd frontend |
| 5 | 5 | npm run build |