File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
=/home/codie/Projects/django-svelte-template/bin/django_backend/config Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ from pathlib import Path
2+ BASE_DIR = Path (__file__ ).resolve ().parent .parent
3+ DATABASES = {
4+ 'default' : {
5+ 'ENGINE' : 'django.db.backends.sqlite3' ,
6+ 'NAME' : BASE_DIR / 'db.sqlite3' ,
7+ }
8+ }
Original file line number Diff line number Diff line change 1+ EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
2+ EMAIL_HOST = "localhost"
3+ EMAIL_PORT = "1725"
4+ EMAIL_HOST_USER = ""
5+ EMAIL_HOST_PASSWORD = ""
6+ EMAIL_USE_TLS = False
7+ EMAIL_USE_SSL = False
8+ DEFAULT_FROM_EMAIL = "info@developsite.com"
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44# Set base directories
5- ROOT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " > /dev/null 2>&1 && pwd ) "
5+ ROOT_DIR=" $( dirname " $( dirname " ${BASH_SOURCE[0]} " ) " ) "
66BACKEND_DIR=" ${ROOT_DIR} /django_backend"
77CONFIG_DIR=" ${BACKEND_DIR} /config"
88FRONTEND_DIR=" ${ROOT_DIR} /svelte_frontend"
@@ -102,6 +102,7 @@ setup_precommit() {
102102setup_frontend () {
103103 print_status INFO " Setting up frontend dependencies..."
104104 cd " $FRONTEND_DIR "
105+ echo " $FRONTEND_DIR "
105106
106107 if [ -f " package.json" ]; then
107108 print_status INFO " Installing frontend dependencies..."
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33export PROJECT_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /" && pwd) "
4+
45run () {
56 " $PROJECT_ROOT /bin/run" " $@ "
67}
78format () {
89 pre-commit run --all-files
910}
11+ configure () {
12+ " $PROJECT_ROOT /bin/configure" " $@ "
13+ }
1014
1115echo " 🛠️ The following commands are now available:"
1216echo " 🚀 run - Start all development servers (Django, Svelte, SMTP)"
You can’t perform that action at this time.
0 commit comments