11 lines
236 B
Bash
Executable file
11 lines
236 B
Bash
Executable file
#!/bin/bash
|
|
# Activate virtual environment if it exists
|
|
if [ -d "venv" ]; then
|
|
source venv/bin/activate
|
|
fi
|
|
|
|
# Apply migrations just in case
|
|
python manage.py migrate
|
|
|
|
# Start the Django server
|
|
python manage.py runserver 0.0.0.0:8000
|