Skip to content

Commit 5f9e6d6

Browse files
committed
chore: configure updated
1 parent 36eafaf commit 5f9e6d6

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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"

configure renamed to bin/configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -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]}")")"
66
BACKEND_DIR="${ROOT_DIR}/django_backend"
77
CONFIG_DIR="${BACKEND_DIR}/config"
88
FRONTEND_DIR="${ROOT_DIR}/svelte_frontend"
@@ -102,6 +102,7 @@ setup_precommit() {
102102
setup_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..."

bin/setup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/bin/bash
22

33
export PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/" && pwd)"
4+
45
run() {
56
"$PROJECT_ROOT/bin/run" "$@"
67
}
78
format() {
89
pre-commit run --all-files
910
}
11+
configure() {
12+
"$PROJECT_ROOT/bin/configure" "$@"
13+
}
1014

1115
echo "🛠️ The following commands are now available:"
1216
echo " 🚀 run - Start all development servers (Django, Svelte, SMTP)"

0 commit comments

Comments
 (0)