12 lines
236 B
Bash
12 lines
236 B
Bash
|
|
#!/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
|